Skip to content

Commit 12383cc

Browse files
committed
Fix linter: rename unused 'name' parameters to '_'
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
1 parent 8daac52 commit 12383cc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/systemd/quadlet/quadlet.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -958,7 +958,7 @@ func defaultOneshotServiceGroup(service *parser.UnitFile, remainAfterExit bool)
958958
// The original Network group is kept around as X-Network.
959959
// Also returns the canonical network name, either auto-generated or user-defined via the
960960
// NetworkName key-value.
961-
func ConvertNetwork(network *parser.UnitFile, name string, unitsInfoMap map[string]*UnitInfo, isUser bool) (*parser.UnitFile, error, error) {
961+
func ConvertNetwork(network *parser.UnitFile, _ string, unitsInfoMap map[string]*UnitInfo, isUser bool) (*parser.UnitFile, error, error) {
962962
var warn, warnings error
963963

964964
service, unitInfo, err := initServiceUnitFile(network, isUser, unitsInfoMap, NetworkGroup)
@@ -1047,7 +1047,7 @@ func ConvertNetwork(network *parser.UnitFile, name string, unitsInfoMap map[stri
10471047
// The original Volume group is kept around as X-Volume.
10481048
// Also returns the canonical volume name, either auto-generated or user-defined via the VolumeName
10491049
// key-value.
1050-
func ConvertVolume(volume *parser.UnitFile, name string, unitsInfoMap map[string]*UnitInfo, isUser bool) (*parser.UnitFile, error, error) {
1050+
func ConvertVolume(volume *parser.UnitFile, _ string, unitsInfoMap map[string]*UnitInfo, isUser bool) (*parser.UnitFile, error, error) {
10511051
var warn, warnings error
10521052

10531053
service, unitInfo, err := initServiceUnitFile(volume, isUser, unitsInfoMap, VolumeGroup)

0 commit comments

Comments
 (0)