mruby-dir: reformat
@@ -128,7 +128,8 @@ mrb_dir_existp(mrb_state *mrb, mrb_value klass)
cpath = mrb_str_to_cstr(mrb, path);
if (stat(cpath, &sb) == 0 && S_ISDIR(sb.st_mode)) {
return mrb_true_value();
- } else {
+ }
+ else {
return mrb_false_value();
}
}
@@ -252,7 +253,8 @@ mrb_dir_read(mrb_state *mrb, mrb_value self)
dp = readdir(mdir->dir);
if (dp != NULL) {
return mrb_str_new_cstr(mrb, dp->d_name);
- } else {
+ }
+ else {
return mrb_nil_value();
}
}
