Skip to content

Commit c7ac444

Browse files
committed
fix: ci errors
1 parent 13c554a commit c7ac444

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/permission/fs_permission.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ void FSPermission::Apply(Environment* env,
131131
}
132132
return;
133133
}
134-
GrantAccess(scope, PathResolve(env, { res }));
134+
GrantAccess(scope, PathResolve(env, {res}));
135135
}
136136
}
137137

src/util.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ std::string NormalizeString(const std::string_view path,
785785
}
786786

787787
#ifdef _WIN32
788-
bool IsWindowsDeviceRoot(const char c) const noexcept {
788+
bool IsWindowsDeviceRoot(const char c) noexcept {
789789
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');
790790
}
791791

@@ -933,9 +933,11 @@ std::string PathResolve(Environment* env,
933933
std::string resolvedPath;
934934
bool resolvedAbsolute = false;
935935
auto cwd = env->GetCwd(env->exec_path());
936+
const size_t numArgs = paths.size();
936937

937938
for (int i = numArgs - 1; i >= -1 && !resolvedAbsolute; i--) {
938-
const std::string& path = (i >= 0) ? std::string(paths[i]) : env->GetCwd(env->exec_path());
939+
const std::string& path =
940+
(i >= 0) ? std::string(paths[i]) : env->GetCwd(env->exec_path());
939941
/* validateString(path, "paths[" + std::to_string(i) + "]"); */
940942

941943
if (!path.empty()) {

0 commit comments

Comments
 (0)