Skip to content

Commit

Permalink
lint: cmd: start: Fix 'unused-parameter' error
Browse files Browse the repository at this point in the history
cmd/crc/cmd/start.go:317:52: unused-parameter: parameter 's' seems to be unused, consider removing or renaming it as _ (revive)
func writePodmanTemplatedMessage(writer io.Writer, s *startResult) error {
                                                   ^
cmd/crc/cmd/start.go:334:56: unused-parameter: parameter 's' seems to be unused, consider removing or renaming it as _ (revive)
func writeMicroShiftTemplatedMessage(writer io.Writer, s *startResult) error {
                                                       ^
  • Loading branch information
cfergeau authored and praveenkumar committed Aug 4, 2023
1 parent 9ff7964 commit 01c7af2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/crc/cmd/start.go
Original file line number Diff line number Diff line change
Expand Up @@ -283,10 +283,10 @@ func writeTemplatedMessage(writer io.Writer, s *startResult) error {
return writeOpenShiftTemplatedMessage(writer, s)
}
if s.ClusterConfig.ClusterType == preset.Microshift {
return writeMicroShiftTemplatedMessage(writer, s)
return writeMicroShiftTemplatedMessage(writer)
}

return writePodmanTemplatedMessage(writer, s)
return writePodmanTemplatedMessage(writer)
}

func writeOpenShiftTemplatedMessage(writer io.Writer, s *startResult) error {
Expand Down Expand Up @@ -314,7 +314,7 @@ func writeOpenShiftTemplatedMessage(writer io.Writer, s *startResult) error {
})
}

func writePodmanTemplatedMessage(writer io.Writer, s *startResult) error {
func writePodmanTemplatedMessage(writer io.Writer) error {
parsed, err := template.New("template").Parse(startTemplateForPodman)
if err != nil {
return err
Expand All @@ -331,7 +331,7 @@ func writePodmanTemplatedMessage(writer io.Writer, s *startResult) error {
})
}

func writeMicroShiftTemplatedMessage(writer io.Writer, s *startResult) error {
func writeMicroShiftTemplatedMessage(writer io.Writer) error {
parsed, err := template.New("template").Parse(startTemplateForMicroShift)
if err != nil {
return err
Expand Down

0 comments on commit 01c7af2

Please sign in to comment.