зеркало из https://github.com/github/ruby.git
Remove unnecessary semicolons (#9469)
This commit is contained in:
Родитель
ef75125271
Коммит
a6ba45e9b0
2
debug.c
2
debug.c
|
@ -683,7 +683,7 @@ debug_log_dump(FILE *out, unsigned int n)
|
|||
int index = current_index - size + i;
|
||||
if (index < 0) index += MAX_DEBUG_LOG;
|
||||
VM_ASSERT(index <= MAX_DEBUG_LOG);
|
||||
const char *mesg = RUBY_DEBUG_LOG_MEM_ENTRY(index);;
|
||||
const char *mesg = RUBY_DEBUG_LOG_MEM_ENTRY(index);
|
||||
fprintf(out, "%4u: %s\n", debug_log.cnt - size + i, mesg);
|
||||
}
|
||||
}
|
||||
|
|
2
eval.c
2
eval.c
|
@ -1829,7 +1829,7 @@ top_include(int argc, VALUE *argv, VALUE self)
|
|||
static VALUE
|
||||
top_using(VALUE self, VALUE module)
|
||||
{
|
||||
const rb_cref_t *cref = CREF_NEXT(rb_vm_cref());;
|
||||
const rb_cref_t *cref = CREF_NEXT(rb_vm_cref());
|
||||
rb_control_frame_t *prev_cfp = previous_frame(GET_EC());
|
||||
rb_thread_t *th = GET_THREAD();
|
||||
|
||||
|
|
2
io.c
2
io.c
|
@ -2678,7 +2678,7 @@ rb_io_eof(VALUE io)
|
|||
READ_CHECK(fptr);
|
||||
#if RUBY_CRLF_ENVIRONMENT
|
||||
if (!NEED_READCONV(fptr) && NEED_NEWLINE_DECORATOR_ON_READ(fptr)) {
|
||||
return RBOOL(eof(fptr->fd));;
|
||||
return RBOOL(eof(fptr->fd));
|
||||
}
|
||||
#endif
|
||||
return RBOOL(io_fillbuf(fptr) < 0);
|
||||
|
|
Загрузка…
Ссылка в новой задаче