Skip to content

Commit 2d6fa4e

Browse files
authored
Merge pull request #1024 from JeffBezanson/jb/canloadfile
fix check in `canloadfile`
2 parents a3caf81 + a13cdb8 commit 2d6fa4e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/staticlint.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import StaticLint: getpath, getroot, setroot, getcst, setcst, semantic_pass, get
33
hasfile(server::LanguageServerInstance, path::String) = !isempty(path) && hasdocument(server, URI2(filepath2uri(path)))
44
function canloadfile(server::LanguageServerInstance, path::String)
55
try
6-
return !isempty(path) && !safe_isfile(path)
6+
return !isempty(path) && safe_isfile(path)
77
catch err
88
isa(err, Base.IOError) || isa(err, Base.SystemError) || rethrow()
99
return false

0 commit comments

Comments
 (0)