summaryrefslogtreecommitdiff
path: root/tool/lib/vcs.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2023-07-10 19:18:48 +0900
committerNobuyoshi Nakada <[email protected]>2023-07-10 19:21:47 +0900
commitc8d0470bb0888bcb6719ba536e5f3f6a8b6551bb ()
tree98536f216cd90b7987629c95b8d2f03f2ec9a3e6 /tool/lib/vcs.rb
parent092c9b266ab3175c40a78e8af99bb82a0f3d2f4b (diff)
Use `File::NULL` instead of hard coded null device names
Notes: Merged: https://.com/ruby/ruby/pull/8050
-rw-r--r--tool/lib/vcs.rb3
1 files changed, 1 insertions, 2 deletions
@@ -154,8 +154,7 @@ class VCS
alias dryrun? dryrun
alias debug? debug
- NullDevice = defined?(IO::NULL) ? IO::NULL :
- %w[/dev/null NUL NIL: NL:].find {|dev| File.exist?(dev)}
# returns
# * the last revision of the current branch