Skip to content

Commit

Permalink
refacto: Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
qu35t-code committed Feb 11, 2025
1 parent 42cd5b6 commit 6b333c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/stop.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func buildMachineStopRequest(machineType string, userSubscription string, machin
apiEndpoint = defaultAPI
}

jsonData = []byte(fmt.Sprintf(`{"machine_id": "%s"}`, machineID))
jsonData = []byte(fmt.Sprintf(`{"machine_id": "%d"}`, machineID))
return apiEndpoint, jsonData
}

Expand All @@ -52,7 +52,7 @@ func coreStopCmd() (string, error) {
if machineID == 0 {
return "No machine is running", nil
}
config.GlobalConfig.Logger.Debug(fmt.Sprintf("Machine ID: %s", machineID))
config.GlobalConfig.Logger.Debug(fmt.Sprintf("Machine ID: %d", machineID))

machineTypeChan := make(chan string)
machineErrChan := make(chan error)
Expand Down

0 comments on commit 6b333c7

Please sign in to comment.