diff options
| author | BrewTestBot | 2015-08-03 13:09:07 +0100 |
|---|---|---|
| committer | Mike McQuaid | 2015-08-03 13:22:35 +0100 |
| commit | 13d544e11e92ba8ea3788723432046f8dfe4adf9 (patch) | |
| tree | e6da18436d9ce956e6fbe80e3185c67cf3b58808 /Library/Homebrew/utils | |
| parent | 3b68215be793774fafd9ce124a2065f5968f50e5 (diff) | |
| download | brew-13d544e11e92ba8ea3788723432046f8dfe4adf9.tar.bz2 | |
Core files style updates.
Closes Homebrew/homebrew#42354.
Signed-off-by: Mike McQuaid <mike@mikemcquaid.com>
Diffstat (limited to 'Library/Homebrew/utils')
| -rw-r--r-- | Library/Homebrew/utils/fork.rb | 4 | ||||
| -rw-r--r-- | Library/Homebrew/utils/inreplace.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/utils/json.rb | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/utils/fork.rb b/Library/Homebrew/utils/fork.rb index 5c364713b..35a55980e 100644 --- a/Library/Homebrew/utils/fork.rb +++ b/Library/Homebrew/utils/fork.rb @@ -2,7 +2,7 @@ require "fcntl" require "socket" module Utils - def self.safe_fork(&block) + def self.safe_fork(&_block) Dir.mktmpdir("homebrew", HOMEBREW_TEMP) do |tmpdir| UNIXServer.open("#{tmpdir}/socket") do |server| read, write = IO.pipe @@ -36,7 +36,7 @@ module Utils data = read.read read.close Process.wait(pid) unless socket.nil? - raise Marshal.load(data) unless data.nil? or data.empty? + raise Marshal.load(data) unless data.nil? || data.empty? raise Interrupt if $?.exitstatus == 130 raise "Suspicious failure" unless $?.success? end diff --git a/Library/Homebrew/utils/inreplace.rb b/Library/Homebrew/utils/inreplace.rb index 02372d214..8ed32bc5b 100644 --- a/Library/Homebrew/utils/inreplace.rb +++ b/Library/Homebrew/utils/inreplace.rb @@ -8,7 +8,7 @@ module Utils end module Inreplace - def inreplace paths, before=nil, after=nil + def inreplace(paths, before = nil, after = nil) errors = {} Array(paths).each do |path| diff --git a/Library/Homebrew/utils/json.rb b/Library/Homebrew/utils/json.rb index 0548a5cb3..8a8cb6847 100644 --- a/Library/Homebrew/utils/json.rb +++ b/Library/Homebrew/utils/json.rb @@ -1,4 +1,4 @@ -require 'vendor/okjson' +require "vendor/okjson" module Utils module JSON |
