Skip to content

Commit

Permalink
doc: update the source documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
graugans committed Apr 15, 2024
1 parent d4fb10b commit d861b48
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions pkg/ovp8xx/portinfo.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/*
Copyright © 2024 Christian Ege <[email protected]>
SPDX-License-Identifier: Apache-2.0
*/

package ovp8xx

import (
Expand Down Expand Up @@ -50,6 +56,7 @@ func (device *Client) Ports() ([]PortInfo, error) {
return emptyPorts, fmt.Errorf("unable retrieve the port info from the input: %s; err: %w", conf.String(), err)
}

// Sort the ports, due to the fact the map is not sorted.
portNames := make([]string, 0)
for key := range info.Ports {
portNames = append(portNames, key)
Expand Down

0 comments on commit d861b48

Please sign in to comment.