summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
Diffstat (limited to 'file.c')
-rw-r--r--file.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/file.c b/file.c
index 182c6d0b42e..b53c814211a 100644
--- a/file.c
+++ b/file.c
@@ -1521,20 +1521,20 @@ rb_f_test(argc, argv)
case '-':
if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
return Qtrue;
- break;
-
+ return Qfalse;
+
case '=':
if (st1.st_mtime == st2.st_mtime) return Qtrue;
- break;
-
+ return Qfalse;
+
case '>':
if (st1.st_mtime > st2.st_mtime) return Qtrue;
- break;
-
+ return Qfalse;
+
case '<':
if (st1.st_mtime < st2.st_mtime) return Qtrue;
- break;
- }
+ return Qfalse;
+ }
}
/* unknown command */
rb_raise(rb_eArgError, "unknown command ?%c", cmd);