diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-27 14:21:09 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-07-27 14:21:09 +0900 |
| commit | 961cd408a86580c4d428f56153da00fd46738e35 (patch) | |
| tree | eaa7f51b5079b1641901fa4e177c98e8dbf74966 /tasks | |
| parent | e488393cbbdd4fd123d71c6c3bd067f1eee5c37a (diff) | |
| download | mruby-961cd408a86580c4d428f56153da00fd46738e35.tar.gz mruby-961cd408a86580c4d428f56153da00fd46738e35.zip | |
replace "if not" to "unless"
Diffstat (limited to 'tasks')
| -rw-r--r-- | tasks/mrbgems_test.rake | 2 | ||||
| -rw-r--r-- | tasks/mruby_build_commands.rake | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tasks/mrbgems_test.rake b/tasks/mrbgems_test.rake index 717f0d76b..1050b84bb 100644 --- a/tasks/mrbgems_test.rake +++ b/tasks/mrbgems_test.rake @@ -38,7 +38,7 @@ MRuby.each_target do f.puts %Q[ }] f.puts %Q[ mrb_const_set(mrb2, mrb_obj_value(mrb2->object_class), mrb_intern(mrb2, "GEMNAME"), mrb_str_new(mrb2, "#{g.name}", #{g.name.length}));] - if not g.test_args.empty? + unless g.test_args.empty? f.puts %Q[ test_args_hash = mrb_hash_new_capa(mrb, #{g.test_args.length}); ] g.test_args.each do |arg_name, arg_value| escaped_arg_name = arg_name.gsub('\\', '\\\\\\\\').gsub('"', '\"') diff --git a/tasks/mruby_build_commands.rake b/tasks/mruby_build_commands.rake index 19d0b70a2..349b8717d 100644 --- a/tasks/mruby_build_commands.rake +++ b/tasks/mruby_build_commands.rake @@ -263,7 +263,7 @@ module MRuby out.puts io.read end # if mrbc execution fail, drop the file - if not $?.exitstatus + unless $?.exitstatus File.delete(out.path) exit -1 end |
