From 6693915399a5d9f1f09255c5008d2cc1209f7662 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 17 Sep 2016 15:17:27 +0100 Subject: rubocop --auto-correct all remaining files. But remove some manual `.freeze`s on constants that shouldn't be constants. --- Library/Homebrew/patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/patch.rb') diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb index 9adb1ffee..a2e735c42 100644 --- a/Library/Homebrew/patch.rb +++ b/Library/Homebrew/patch.rb @@ -130,7 +130,7 @@ class ExternalPatch patch_dir = Pathname.pwd if patch_files.empty? children = patch_dir.children - if (children.length == 1 && children.first.file?) + if children.length == 1 && children.first.file? patch_files << children.first.basename else raise MissingApplyError, <<-EOS.undent -- cgit v1.2.3 From 3982950e6106d45811a396a6a7478eeeee2817d7 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Sat, 17 Sep 2016 15:32:44 +0100 Subject: rubocop --auto-correct all hash-rocket usage. --- Library/Homebrew/patch.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/patch.rb') diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb index a2e735c42..1148389cf 100644 --- a/Library/Homebrew/patch.rb +++ b/Library/Homebrew/patch.rb @@ -29,7 +29,7 @@ module Patch when Hash list when Array, String, :DATA - { :p1 => list } + { p1: list } else {} end.each_pair do |strip, urls| -- cgit v1.2.3