Skip to content

Commit

Permalink
[chore] Run gofmt
Browse files Browse the repository at this point in the history
  • Loading branch information
robinovitch61 committed Feb 11, 2024
1 parent dc5435a commit 6241394
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions internal/tui/nomad/allocadmin.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (
var (
// AllocAdminActions maps allocation-specific AdminActions to their display text
AllocAdminActions = map[AdminAction]string{
RestartTaskAction: "Restart",
RestartTaskAction: "Restart",
RestartAllocAction: "Restart",
StopAllocAction: "Stop",
StopAllocAction: "Stop",
}
)

Expand Down
8 changes: 4 additions & 4 deletions internal/tui/nomad/jobadmin.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ import (

var (
JobAdminActions = map[AdminAction]string{
StopJobAction: "Stop",
StopAndPurgeJobAction: "Stop and purge",
StopJobAction: "Stop",
StopAndPurgeJobAction: "Stop and purge",
}
)

type JobAdminActionCompleteMsg struct {
Err error
Err error
JobID string
}

Expand Down Expand Up @@ -51,7 +51,7 @@ func StopJob(client api.Client, jobID, jobNamespace string, purge bool) tea.Cmd
_, _, err := client.Jobs().Deregister(jobID, purge, opts)
if err != nil {
return JobAdminActionCompleteMsg{
Err: err,
Err: err,
JobID: jobID,
}
}
Expand Down
2 changes: 1 addition & 1 deletion internal/tui/nomad/pages.go
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ func (p Page) doesUpdate() bool {
AllEventPage, // doesn't load
AllocAdminPage, // doesn't load
AllocAdminConfirmPage, // doesn't load
JobAdminPage, // doesn't load
JobAdminPage, // doesn't load
JobAdminConfirmPage, // doesn't load
}
for _, noUpdatePage := range noUpdatePages {
Expand Down

0 comments on commit 6241394

Please sign in to comment.