Skip to content

Commit

Permalink
CASMHMS-6148: Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jwlv committed Apr 19, 2024
1 parent 483d518 commit f01b2a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/capmcd/nodecap.go
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ func (d *CapmcD) doPowerCapGet(w http.ResponseWriter, r *http.Request) {
// Convert PowerConsumedWatts to an int if not already (it's an interface{}
// type that can support ints and floats) - Needed for Foxconn Paradise,
// perhaps others in the future
for i, pwrCtl := range rfPower.PowerCtl {
for _, pwrCtl := range rfPower.PowerCtl {
if pwrCtl.PowerConsumedWatts != nil {
switch v := (*pwrCtl.PowerConsumedWatts).(type) {
case float64: // Convert to int
Expand Down

0 comments on commit f01b2a0

Please sign in to comment.