Cleanup service plist code.

This commit is contained in:
Mike McQuaid 2021-04-09 13:30:43 +01:00
parent b927ecfd85
commit 1ab2726e76
No known key found for this signature in database
GPG Key ID: 48A898132FD8EE70
2 changed files with 3 additions and 10 deletions

View File

@ -970,9 +970,9 @@ class Formula
# The service specification of the software.
def service
return Homebrew::Service.new(self, &self.class.service) if service?
return unless service?
nil
Homebrew::Service.new(self, &self.class.service)
end
# @private

View File

@ -111,14 +111,7 @@ module Homebrew
end
end
delegate [ # rubocop:disable Layout/HashAlignment
:bin,
:var,
:etc,
:opt_bin,
:opt_sbin,
:opt_prefix,
] => :@formula
delegate [:bin, :var, :etc, :opt_bin, :opt_sbin, :opt_prefix] => :@formula
sig { returns(String) }
def std_service_path_env