aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cask/lib/hbc/cli
diff options
context:
space:
mode:
authorMarkus Reiter2016-10-14 20:11:33 +0200
committerMarkus Reiter2016-10-23 14:32:03 +0200
commitae7b944238ca23aff13d29375e4c59b32ae9d436 (patch)
treea39baea6c0491fc1396821c5bb5df16300cd9c55 /Library/Homebrew/cask/lib/hbc/cli
parent8e9eae695adff40df52e667db30dd4fc318615ef (diff)
downloadbrew-ae7b944238ca23aff13d29375e4c59b32ae9d436.tar.bz2
Align `end` with beginning of line where `if/unless` is.
Diffstat (limited to 'Library/Homebrew/cask/lib/hbc/cli')
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/cleanup.rb16
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/doctor.rb4
-rw-r--r--Library/Homebrew/cask/lib/hbc/cli/style.rb12
3 files changed, 16 insertions, 16 deletions
diff --git a/Library/Homebrew/cask/lib/hbc/cli/cleanup.rb b/Library/Homebrew/cask/lib/hbc/cli/cleanup.rb
index 0296dc96d..e65ee422d 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/cleanup.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/cleanup.rb
@@ -72,14 +72,14 @@ module Hbc
ohai message
deletable_cache_files = if tokens.empty?
- cache_files
- else
- start_withs = tokens.map { |token| "#{token}--" }
-
- cache_files.select { |path|
- path.basename.to_s.start_with?(*start_withs)
- }
- end
+ cache_files
+ else
+ start_withs = tokens.map { |token| "#{token}--" }
+
+ cache_files.select { |path|
+ path.basename.to_s.start_with?(*start_withs)
+ }
+ end
delete_paths(deletable_cache_files)
end
diff --git a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb
index a41781a0c..f4262a62c 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/doctor.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/doctor.rb
@@ -78,8 +78,8 @@ module Hbc
def self.homebrew_taps
@homebrew_taps ||= if homebrew_repository.respond_to?(:join)
- homebrew_repository.join("Library", "Taps")
- end
+ homebrew_repository.join("Library", "Taps")
+ end
end
def self.homebrew_constants(name)
diff --git a/Library/Homebrew/cask/lib/hbc/cli/style.rb b/Library/Homebrew/cask/lib/hbc/cli/style.rb
index fcb59230e..01ba39411 100644
--- a/Library/Homebrew/cask/lib/hbc/cli/style.rb
+++ b/Library/Homebrew/cask/lib/hbc/cli/style.rb
@@ -37,12 +37,12 @@ module Hbc
def cask_paths
@cask_paths ||= if cask_tokens.empty?
- Hbc.all_tapped_cask_dirs
- elsif cask_tokens.any? { |file| File.exist?(file) }
- cask_tokens
- else
- cask_tokens.map { |token| Hbc.path(token) }
- end
+ Hbc.all_tapped_cask_dirs
+ elsif cask_tokens.any? { |file| File.exist?(file) }
+ cask_tokens
+ else
+ cask_tokens.map { |token| Hbc.path(token) }
+ end
end
def cask_tokens