reduced nesting
parent
2792c9b9c9
commit
c7ac4a1290
|
@ -637,7 +637,9 @@ func VerifyNotPaused(profile string, enable bool) error {
|
|||
if err != nil {
|
||||
return errors.Wrap(err, "check paused")
|
||||
}
|
||||
if runtimePaused {
|
||||
if !runtimePaused {
|
||||
return nil
|
||||
}
|
||||
action := "disable"
|
||||
if enable {
|
||||
action = "enable"
|
||||
|
@ -646,5 +648,3 @@ func VerifyNotPaused(profile string, enable bool) error {
|
|||
out.Styled(style.Shrug, msg)
|
||||
return errors.New(msg)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue