aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/fs.c
diff options
context:
space:
mode:
authorLewis Russell <lewis6991@gmail.com>2023-02-02 13:21:44 +0000
committerGitHub <noreply@github.com>2023-02-02 13:21:44 +0000
commitb02eeb6a7281df0561a021d7ae595c84be9a01be (patch)
treec0b00f27be340782c205ea380878671a9e31fb12 /src/nvim/os/fs.c
parent533bdcb25eac8f43453d2de166bb824df8dc4dae (diff)
downloadrneovim-b02eeb6a7281df0561a021d7ae595c84be9a01be.tar.gz
rneovim-b02eeb6a7281df0561a021d7ae595c84be9a01be.tar.bz2
rneovim-b02eeb6a7281df0561a021d7ae595c84be9a01be.zip
fix(lua): mark some eval functions that can run in API-fast
Diffstat (limited to 'src/nvim/os/fs.c')
-rw-r--r--src/nvim/os/fs.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c
index 302faa8140..6157341ec9 100644
--- a/src/nvim/os/fs.c
+++ b/src/nvim/os/fs.c
@@ -146,11 +146,7 @@ bool os_isdir(const char *name)
return false;
}
- if (!S_ISDIR(mode)) {
- return false;
- }
-
- return true;
+ return S_ISDIR(mode);
}
/// Check what `name` is: