aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-04-05 22:03:33 -0500
committerJack Nagel2014-04-05 22:03:39 -0500
commit2616127a281b9cf7f15c3fb2cd8536741d0f1b6c (patch)
tree5d80612347f8850dbee9b8e02fa04dd5d6bea2b9 /Library
parent9b249038758a291f227605447d2526297ad69c5f (diff)
downloadbrew-2616127a281b9cf7f15c3fb2cd8536741d0f1b6c.tar.bz2
Remove unnecessary usage of Formula.canonical_name
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/cmd/brew-services.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/Library/Contributions/cmd/brew-services.rb b/Library/Contributions/cmd/brew-services.rb
index 0149b2382..577994492 100755
--- a/Library/Contributions/cmd/brew-services.rb
+++ b/Library/Contributions/cmd/brew-services.rb
@@ -123,7 +123,7 @@ module ServicesCli
end
# Access current service
- def service; @service ||= Service.new(Formula.factory(Formula.canonical_name(@formula))) if @formula end
+ def service; @service ||= Service.new(Formula.factory(@formula)) if @formula end
# Print usage and `exit(...)` with supplied exit code, if code
# is set to `false`, then exit is ignored.
@@ -302,7 +302,7 @@ class Service
# Create a new `Service` instance from either a path or label.
def self.from(path_or_label)
return nil unless path_or_label =~ /homebrew\.mxcl\.([^\.]+)(\.plist)?\z/
- new(Formula.factory(Formula.canonical_name($1))) rescue nil
+ new(Formula.factory($1)) rescue nil
end
# Initialize new `Service` instance with supplied formula.