Skip to content

Commit

Permalink
Fix linting error
Browse files Browse the repository at this point in the history
  • Loading branch information
sneal committed Mar 16, 2023
1 parent e7108b8 commit c565ff2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/vcenter/adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ func (a anyAdapter) Device() types.BaseVirtualDevice {

func (a anyAdapter) String() string {
if a.VirtualE1000 != nil {
return fmt.Sprintf("%s", a.VirtualE1000.MacAddress)
return a.VirtualE1000.MacAddress
} else if a.VirtualVmxnet3 != nil {
return fmt.Sprintf("%s", a.VirtualVmxnet3.MacAddress)
return a.VirtualVmxnet3.MacAddress
} else {
panic("bug: no supported vNICs found")
}
Expand Down

0 comments on commit c565ff2

Please sign in to comment.