We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6b24f58 commit 228ae6cCopy full SHA for 228ae6c
1 file changed
runtime-light/k2-platform/k2-api.h
@@ -180,9 +180,8 @@ inline auto readdir(k2::descriptor descriptor) noexcept {
180
inline std::expected<void, int32_t> access(std::string_view path, int32_t mode) noexcept {
181
if (auto error_code{k2_access(path.data(), path.size(), mode)}; error_code != k2::errno_ok) [[unlikely]] {
182
return std::unexpected{error_code};
183
- } else {
184
- return {};
185
}
+ return {};
186
187
188
inline std::expected<void, int32_t> unlink(std::string_view path) noexcept {
0 commit comments