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/utils.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Homebrew/utils.rb') diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb index b3520a7ec..dd6608742 100644 --- a/Library/Homebrew/utils.rb +++ b/Library/Homebrew/utils.rb @@ -163,7 +163,7 @@ def odeprecated(method, replacement = nil, options = {}) end def odisabled(method, replacement = nil, options = {}) - options = { :die => true, :caller => caller }.merge(options) + options = { die: true, caller: caller }.merge(options) odeprecated(method, replacement, options) end @@ -587,7 +587,7 @@ def truncate_text_to_approximate_size(s, max_bytes, options = {}) end out = front + glue_bytes + back out.force_encoding("UTF-8") - out.encode!("UTF-16", :invalid => :replace) + out.encode!("UTF-16", invalid: :replace) out.encode!("UTF-8") out end -- cgit v1.2.3