Skip to content

Commit a13cdb8

Browse files
committed
fix check in canloadfile
1 parent a3caf81 commit a13cdb8

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)