Skip to content

Commit

Permalink
PR comment fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeschuurmans committed Aug 13, 2024
1 parent 07fc69e commit 8e7fc83
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions internal/device/dryRun.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ type serverState struct {

var (
errBmcCantFindServer = errors.New("dryrun BMC couldnt find server to set state")
serverStates map[string]serverState
serverStates = make(map[string]serverState)
)

// Bmc is an implementation of the Queryor interface
Expand All @@ -23,10 +23,6 @@ type DryRunBMC struct {
}

func NewDryRunBMCClient(asset *model.Asset) Queryor {
if serverStates == nil {
serverStates = make(map[string]serverState)
}

state, ok := serverStates[asset.ID.String()]
if !ok {
state.power = "on"
Expand Down

0 comments on commit 8e7fc83

Please sign in to comment.