Skip to content

Commit

Permalink
Fix method signature for issocket
Browse files Browse the repository at this point in the history
  • Loading branch information
davidanthoff committed Jul 24, 2018
1 parent 85e9d70 commit ee10f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mode.jl
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ Base.isfile(mode::Mode) = _meta(mode.m) == S_IFREG
Base.islink(mode::Mode) = _meta(mode.m) == S_IFLNK

"""Return True if mode is from a socket."""
Base.issocket(mode) = _meta(mode.m) == S_IFSOCK
Base.issocket(mode::Mode) = _meta(mode.m) == S_IFSOCK

"""Return True if mode is from a FIFO (named pipe)."""
Base.isfifo(mode::Mode) = _meta(mode.m) == S_IFIFO
Expand Down

0 comments on commit ee10f8a

Please sign in to comment.