Skip to content

Commit

Permalink
src: modify CHECK_GE to CHECK_EQ
Browse files Browse the repository at this point in the history
  • Loading branch information
pluris committed Sep 27, 2023
1 parent ba30414 commit e769fc5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/node_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1662,8 +1662,7 @@ static void Fsync(const FunctionCallbackInfo<Value>& args) {
static void FsyncSync(const FunctionCallbackInfo<Value>& 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;
Expand Down

0 comments on commit e769fc5

Please sign in to comment.