Merge pull request #15456 from Bo98/service-api-fix

service: fix API compatibility break
This commit is contained in:
Bo Anderson 2023-05-18 15:12:21 +01:00 committed by GitHub
commit 2b703d5ed4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -538,9 +538,7 @@ module Homebrew
linux: (service_name if service_name != default_service_name),
}.compact
unless command?
return name_params.blank? ? {} : { name: name_params }
end
return { name: name_params }.compact_blank if @run_params.blank?
cron_string = if @cron.present?
[:Minute, :Hour, :Day, :Month, :Weekday]