Skip to content

Commit

Permalink
Reformat as if else
Browse files Browse the repository at this point in the history
  • Loading branch information
leomick authored Feb 11, 2025
1 parent 8c4f30c commit f7713c8
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/plugincmds/remove.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,8 @@ var RemoveCmd = &cobra.Command{
p := tea.NewProgram(initialRemoveModel(args[0]))
if model, err := p.Run(); err != nil {
log.Fatal(err)
} else {
if model, ok := model.(removeModel); ok {
fatalHandler.Handle(model.errorHandler)
}
} else if model, ok := model.(removeModel); ok {
fatalHandler.Handle(model.errorHandler)
}
},
}

0 comments on commit f7713c8

Please sign in to comment.