Skip to content

Commit

Permalink
address comment
Browse files Browse the repository at this point in the history
Signed-off-by: husharp <[email protected]>
  • Loading branch information
HuSharp committed Aug 8, 2024
1 parent c7a69db commit 6d85975
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions pkg/domain/resourcegroup/runaway.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,10 +546,7 @@ func (r *RunawayChecker) CheckKillAction() bool {
}
}
}
if r.setting.Action != rmpb.RunawayAction_Kill {
return false
}
return true
return r.setting.Action == rmpb.RunawayAction_Kill
}

// Rule returns the rule of the runaway checker.
Expand Down

0 comments on commit 6d85975

Please sign in to comment.