Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
hellt committed May 3, 2022
1 parent 87885ab commit 3ab41c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 3ab41c9

Please sign in to comment.