mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-14 13:45:06 +00:00
Merge pull request #101523 from GreenApple10/feature/cleanslice_nil
Omit comparison with boolean constant
This commit is contained in:
@@ -122,7 +122,7 @@ func shouldStartNewLine(lastWord, str string) bool {
|
||||
return true
|
||||
}
|
||||
// preserve lines that look like they're starting lists
|
||||
if bullet.MatchString(str) == true {
|
||||
if bullet.MatchString(str) {
|
||||
return true
|
||||
}
|
||||
// otherwise combine
|
||||
|
Reference in New Issue
Block a user