Skip to content

Commit 09b5de3

Browse files
author
pluris
committed
src: modify CHECK_GE to CHECK_EQ
1 parent ad76d06 commit 09b5de3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/node_file.cc

+1-2
Original file line numberDiff line numberDiff line change
@@ -1662,8 +1662,7 @@ static void Fsync(const FunctionCallbackInfo<Value>& args) {
16621662
static void FsyncSync(const FunctionCallbackInfo<Value>& args) {
16631663
Environment* env = Environment::GetCurrent(args);
16641664

1665-
const int argc = args.Length();
1666-
CHECK_GE(argc, 1);
1665+
CHECK_EQ(args.Length(), 1);
16671666

16681667
const int fd = GetValidatedFd(env, args[0]);
16691668
if (fd == (1 << 30)) return;

0 commit comments

Comments
 (0)