From 612aa5c24a7c249867bbcd7d6567012aa6a7f4b9 Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 21 Nov 2022 16:20:17 +0900 Subject: Use class methods of `File` over `Kernel.open` and `IO.read` --- tool/expand-config.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tool/expand-config.rb') diff --git a/tool/expand-config.rb b/tool/expand-config.rb index 81ffa6cb98..928e7f91fe 100755 --- a/tool/expand-config.rb +++ b/tool/expand-config.rb @@ -16,7 +16,7 @@ while /\A(\w+)=(.*)/ =~ ARGV[0] end if $output - output = open($output, "wb", $mode &&= $mode.oct) + output = File.open($output, "wb", $mode &&= $mode.oct) output.chmod($mode) if $mode else output = STDOUT -- cgit v1.2.3