Skip to content

Commit

Permalink
libnetwork/drivers/bridge: fix non-constant format string in call (go…
Browse files Browse the repository at this point in the history
…vet)

    libnetwork/drivers/bridge/setup_ip_tables_linux.go:385:23: printf: non-constant format string in call to fmt.Errorf (govet)
                    return fmt.Errorf(msg)
                                      ^

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
(cherry picked from commit 068c1bf)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
  • Loading branch information
thaJeztah committed Aug 28, 2024
1 parent 812b97d commit 405a163
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libnetwork/drivers/bridge/setup_ip_tables_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ func setINC(version iptables.IPVersion, iface string, enable bool) error {
log.G(context.TODO()).Warnf("Failed to rollback iptables rule after failure (%v): %v", err, err2)
}
}
return fmt.Errorf(msg)
return errors.New(msg)
}
log.G(context.TODO()).Warn(msg)
}
Expand Down

0 comments on commit 405a163

Please sign in to comment.