From c8d0470bb0888bcb6719ba536e5f3f6a8b6551bb Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 10 Jul 2023 19:18:48 +0900 Subject: Use `File::NULL` instead of hard coded null device names --- tool/lib/vcs.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'tool') diff --git a/tool/lib/vcs.rb b/tool/lib/vcs.rb index 650f275250..8566d72349 100644 --- a/tool/lib/vcs.rb +++ b/tool/lib/vcs.rb @@ -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)} + NullDevice = IO::NULL # returns # * the last revision of the current branch -- cgit v1.2.3