From 3ab41c9f0cbf20d380097bbd315b74127851a032 Mon Sep 17 00:00:00 2001 From: Roman Dodin Date: Tue, 3 May 2022 11:02:44 +0200 Subject: [PATCH] fix lint issues --- cmd/generate.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/generate.go b/cmd/generate.go index dc4d5bb30..5b42997bc 100644 --- a/cmd/generate.go +++ b/cmd/generate.go @@ -131,7 +131,7 @@ func init() { generateCmd.Flags().UintVarP(&maxWorkers, "max-workers", "", 0, "limit the maximum number of workers creating nodes and virtual wires") } -func generateTopologyConfig(name, network, ipv4range, ipv6range string, images map[string]string, licenses map[string]string, nodes ...nodesDef) ([]byte, error) { +func generateTopologyConfig(name, network, ipv4range, ipv6range string, images, licenses map[string]string, nodes ...nodesDef) ([]byte, error) { numStages := len(nodes) config := &clab.Config{ Name: name, @@ -291,7 +291,7 @@ func parseNodesFlag(kind string, nodes ...string) ([]nodesDef, error) { } func saveTopoFile(path string, data []byte) error { - f, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0666) + f, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_TRUNC, 0666) // skipcq: GSC-G302 if err != nil { return err }