service: fix API compatibility break

This commit is contained in:
Bo Anderson 2023-05-18 14:34:35 +01:00
parent 6ac868a035
commit a3c96126cf
No known key found for this signature in database
GPG Key ID: 3DB94E204E137D65

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]