fix ineffectual assignments found by golangci-lint
This commit is contained in:
parent
55d3854033
commit
3ff88c336f
4 changed files with 10 additions and 4 deletions
|
|
@ -549,7 +549,7 @@ func (r *Fedora30) firewallStageOptions(firewall *blueprint.FirewallCustomizatio
|
|||
func (r *Fedora30) systemdStageOptions(enabledServices, disabledServices []string, s *blueprint.ServicesCustomization) *pipeline.SystemdStageOptions {
|
||||
if s != nil {
|
||||
enabledServices = append(enabledServices, s.Enabled...)
|
||||
enabledServices = append(disabledServices, s.Disabled...)
|
||||
disabledServices = append(disabledServices, s.Disabled...)
|
||||
}
|
||||
return &pipeline.SystemdStageOptions{
|
||||
EnabledServices: enabledServices,
|
||||
|
|
|
|||
|
|
@ -441,7 +441,6 @@ func (r *RHEL82) Name() string {
|
|||
return name
|
||||
}
|
||||
|
||||
|
||||
func (r *RHEL82) Distribution() common.Distribution {
|
||||
return Distro
|
||||
}
|
||||
|
|
@ -692,7 +691,7 @@ func (r *RHEL82) firewallStageOptions(firewall *blueprint.FirewallCustomization)
|
|||
func (r *RHEL82) systemdStageOptions(enabledServices, disabledServices []string, s *blueprint.ServicesCustomization, target string) *pipeline.SystemdStageOptions {
|
||||
if s != nil {
|
||||
enabledServices = append(enabledServices, s.Enabled...)
|
||||
enabledServices = append(disabledServices, s.Disabled...)
|
||||
disabledServices = append(disabledServices, s.Disabled...)
|
||||
}
|
||||
return &pipeline.SystemdStageOptions{
|
||||
EnabledServices: enabledServices,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue