Skip to content

Commit 228ae6c

Browse files
authored
small fix
1 parent 6b24f58 commit 228ae6c

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

runtime-light/k2-platform/k2-api.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,9 +180,8 @@ inline auto readdir(k2::descriptor descriptor) noexcept {
180180
inline std::expected<void, int32_t> access(std::string_view path, int32_t mode) noexcept {
181181
if (auto error_code{k2_access(path.data(), path.size(), mode)}; error_code != k2::errno_ok) [[unlikely]] {
182182
return std::unexpected{error_code};
183-
} else {
184-
return {};
185183
}
184+
return {};
186185
}
187186

188187
inline std::expected<void, int32_t> unlink(std::string_view path) noexcept {

0 commit comments

Comments
 (0)