diff --git a/src/node_file.cc b/src/node_file.cc index e46ed51a7e6d9a..9bd4e088c44d12 100644 --- a/src/node_file.cc +++ b/src/node_file.cc @@ -1942,7 +1942,6 @@ static inline Maybe CheckOpenPermissions(Environment* env, const int write_as_side_effect = flags & (UV_FS_O_APPEND | UV_FS_O_CREAT | UV_FS_O_TRUNC | UV_FS_O_TEMPORARY); - // TODO(rafaelgss): it can be optimized to avoid two permission checks auto pathView = path.ToStringView(); if (rwflags != UV_FS_O_WRONLY) { THROW_IF_INSUFFICIENT_PERMISSIONS(