aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/patch.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/patch.rb')
-rw-r--r--Library/Homebrew/patch.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Homebrew/patch.rb b/Library/Homebrew/patch.rb
index 9adb1ffee..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|
@@ -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