We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c50306 commit c066035Copy full SHA for c066035
lua/rest-nvim/utils/init.lua
@@ -27,8 +27,7 @@ end
27
-- file_exists checks if the provided file exists and returns a boolean
28
-- @param file File to check
29
M.file_exists = function(file)
30
- if vim.fn.filereadable(file) ~= 1 then return false end
31
- return true
+ return vim.fn.filereadable(file) == 1
32
end
33
34
-- read_file Reads all lines from a file and returns the content as a table
0 commit comments