aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/fs.c
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2016-05-01 20:35:51 +0300
committerZyX <kp-pav@yandex.ru>2016-05-01 20:35:51 +0300
commitcf4e1fb0f4962319eee292248d9c1f73be3a8d0c (patch)
tree60b1d2aad6205c74b7c2611fbbed45759a302f4f /src/nvim/os/fs.c
parenta1f985f60a228604970a70872b7ea1fb5299eba3 (diff)
downloadrneovim-cf4e1fb0f4962319eee292248d9c1f73be3a8d0c.tar.gz
rneovim-cf4e1fb0f4962319eee292248d9c1f73be3a8d0c.tar.bz2
rneovim-cf4e1fb0f4962319eee292248d9c1f73be3a8d0c.zip
*: Fix new linter errors
Originally there were 128 new errors, so I thought this is a good idea to fix all of them. Of course, this commit also fixes many suppressed errors.
Diffstat (limited to 'src/nvim/os/fs.c')
-rw-r--r--src/nvim/os/fs.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nvim/os/fs.c b/src/nvim/os/fs.c
index b6613caa45..abb71a2c15 100644
--- a/src/nvim/os/fs.c
+++ b/src/nvim/os/fs.c
@@ -175,9 +175,10 @@ bool os_can_exe(const char_u *name, char_u **abspath)
FUNC_ATTR_NONNULL_ARG(1)
{
// If it's an absolute or relative path don't need to use $PATH.
- if (path_is_absolute_path(name) ||
- (name[0] == '.' && (name[1] == '/' ||
- (name[1] == '.' && name[2] == '/')))) {
+ if (path_is_absolute_path(name)
+ || (name[0] == '.'
+ && (name[1] == '/'
+ || (name[1] == '.' && name[2] == '/')))) {
if (is_executable(name)) {
if (abspath != NULL) {
*abspath = save_absolute_path(name);