From e769fc5a35865158f1a7388790b4d1a4f73b2515 Mon Sep 17 00:00:00 2001 From: pluris Date: Wed, 27 Sep 2023 23:11:06 +0900 Subject: [PATCH] src: modify CHECK_GE to CHECK_EQ --- src/node_file.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/node_file.cc b/src/node_file.cc index 7298eb69f0496c..79057a899da0b8 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -1662,8 +1662,7 @@ static void Fsync(const FunctionCallbackInfo& args) { static void FsyncSync(const FunctionCallbackInfo& args) { Environment* env = Environment::GetCurrent(args); - const int argc = args.Length(); - CHECK_GE(argc, 1); + CHECK_EQ(args.Length(), 1); const int fd = GetValidatedFd(env, args[0]); if (fd == (1 << 30)) return;