node: fix linter warning

Thanks linter, I did *not* know about this one :-)

commit-id:222b476a
This commit is contained in:
Leo 2021-12-16 17:33:59 +01:00
parent 1e4ecef4ce
commit e571e96bbd
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ func runListNodes(cmd *cobra.Command, args []string) {
var filtered []network
for _, network := range networks {
for _, name := range only {
if strings.ToLower(name) == strings.ToLower(network.string) {
if strings.EqualFold(network.string, name) {
filtered = append(filtered, network)
}
}