diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-04-03 16:56:27 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-04-03 16:56:27 +0900 |
| commit | 77331d127b6ab202e703bd7297ab6aabf4a314e9 (patch) | |
| tree | e86c5ee7c9f4a5a867d63745607f525116b84d19 /mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c | |
| parent | fbf4089d2f9480b5f5c9b8cdc312ad5e8417f62e (diff) | |
| download | mruby-77331d127b6ab202e703bd7297ab6aabf4a314e9.tar.gz mruby-77331d127b6ab202e703bd7297ab6aabf4a314e9.zip | |
Unify `else` clause style
Diffstat (limited to 'mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c')
| -rw-r--r-- | mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c b/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c index 0c5002feb..4553a965a 100644 --- a/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c +++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apibreak.c @@ -31,7 +31,8 @@ check_lineno(mrb_irep_debug_info_file *info_file, uint16_t lineno) return lineno; } } - } else { + } + else { for (l_idx = 0; l_idx < count; ++l_idx) { if (lineno == info_file->lines.flat_map[l_idx].line) { return lineno; @@ -198,7 +199,8 @@ mrb_debug_set_break_line(mrb_state *mrb, mrb_debug_context *dbg, const char *fil result = check_file_lineno(dbg->root_irep, file, lineno); if (result == 0) { return MRB_DEBUG_BREAK_INVALID_FILE; - }else if (result == MRB_DEBUG_BP_FILE_OK) { + } + else if (result == MRB_DEBUG_BP_FILE_OK) { return MRB_DEBUG_BREAK_INVALID_LINENO; } |
