From cf4e1fb0f4962319eee292248d9c1f73be3a8d0c Mon Sep 17 00:00:00 2001 From: ZyX Date: Sun, 1 May 2016 20:35:51 +0300 Subject: *: 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. --- src/nvim/os/fs.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src/nvim/os/fs.c') 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); -- cgit