Skip to content

Commit

Permalink
Fix Base.touch usage call for Julia v1.9
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Apr 20, 2022
1 parent c7914b2 commit 3c16439
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Pidfile.jl
Expand Up @@ -108,7 +108,7 @@ See also the `refresh` keyword in the [`mkpidlock`](@ref) constructor.
"""
Base.touch(lock::LockMonitor) = (touch(lock.fd); lock)

if hasmethod(Base, Tuple{File})
if hasmethod(Base.touch, Tuple{File})
# added in Julia v1.9
const touch = Base.touch
else
Expand Down

0 comments on commit 3c16439

Please sign in to comment.