Skip to content

Commit

Permalink
Initialise real path variable before try/catch statement
Browse files Browse the repository at this point in the history
  • Loading branch information
jakewilliami committed Sep 26, 2022
1 parent 50f0731 commit 96011bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/HiddenFiles.jl
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ end
# the real path out, and apply the branch's _ishidden function to that path to get a final result
function ishidden(f::AbstractString)
# If path does not exist, `realpath` will error™
local rp::String
try
rp = realpath(f)
catch e
Expand Down

0 comments on commit 96011bb

Please sign in to comment.