[Groonga-commit] groonga/groonga at e2884f0 [master] Fix style

Back to archive index

Kouhei Sutou null+****@clear*****
Sun Aug 27 22:52:22 JST 2017


Kouhei Sutou	2017-08-27 22:52:22 +0900 (Sun, 27 Aug 2017)

  New Revision: e2884f090bdafc6f2a80faf0e1821023f7bdfe77
  https://github.com/groonga/groonga/commit/e2884f090bdafc6f2a80faf0e1821023f7bdfe77

  Message:
    Fix style

  Modified files:
    lib/mrb/mrb_eval_context.c

  Modified: lib/mrb/mrb_eval_context.c (+3 -6)
===================================================================
--- lib/mrb/mrb_eval_context.c    2017-08-27 22:51:17 +0900 (b4cbab622)
+++ lib/mrb/mrb_eval_context.c    2017-08-27 22:52:22 +0900 (bf9cf321c)
@@ -38,21 +38,18 @@ eval_context_compile(mrb_state *mrb, mrb_value self)
   struct RProc *proc;
 
   ctx = mrbc_context_new(mrb);
-  if (!ctx)
-  {
+  if (!ctx) {
     mrb_raise(mrb,E_RUNTIME_ERROR, "mrbc_context_new failed.");
   }
   ctx->capture_errors = 1;
 
   mrb_get_args(mrb, "s", &script, &script_length);
   parser = mrb_parse_nstring(mrb, script, script_length, ctx);
-  if (!parser)
-  {
+  if (!parser) {
     mrbc_context_free(mrb, ctx);
     mrb_raise(mrb,E_RUNTIME_ERROR, "mrb_parse_nstring failed.");
   }
-  if (parser->nerr > 0)
-  {
+  if (parser->nerr > 0) {
     mrb_value errormessage = mrb_format(mrb, "line %S:%S: %S",
       mrb_fixnum_value(parser->error_buffer[0].lineno),
       mrb_fixnum_value(parser->error_buffer[0].column),
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index