simplified boolean comparison

This commit is contained in:
Corey Johnson 2020-05-01 14:16:49 -07:00
parent 922352753a
commit 846425fe5e

View file

@ -392,11 +392,11 @@ func prReopen(cmd *cobra.Command, args []string) error {
}
if pr.State == "MERGED" {
fmt.Fprintf(colorableErr(cmd), "%s Pull request #%d can't be reopened because it was merged.", utils.Red("!"), pr.Number)
fmt.Fprintf(colorableErr(cmd), "%s Pull request #%d can't be reopened because it was already merged.\n", utils.Red("!"), pr.Number)
return nil
}
if pr.Closed == false {
if !pr.Closed {
fmt.Fprintf(colorableErr(cmd), "%s Pull request #%d is already open\n", utils.Yellow("!"), pr.Number)
return nil
}