Skip to content

Commit c066035

Browse files
YaguaNTBBloodbath
andauthored
Update utils.file_exists function
Co-authored-by: Alejandro <bloodbathalchemist@protonmail.com>
1 parent 2c50306 commit c066035

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/rest-nvim/utils/init.lua

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ end
2727
-- file_exists checks if the provided file exists and returns a boolean
2828
-- @param file File to check
2929
M.file_exists = function(file)
30-
if vim.fn.filereadable(file) ~= 1 then return false end
31-
return true
30+
return vim.fn.filereadable(file) == 1
3231
end
3332

3433
-- read_file Reads all lines from a file and returns the content as a table

0 commit comments

Comments
 (0)