We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28675ba commit bfe45eeCopy full SHA for bfe45ee
plumbing/format/diff/unified_encoder.go
@@ -94,7 +94,7 @@ func (e *UnifiedEncoder) printMessage(message string) {
94
isEmpty := message == ""
95
hasSuffix := strings.HasSuffix(message, "\n")
96
if !isEmpty && !hasSuffix {
97
- message = message + "\n"
+ message += "\n"
98
}
99
100
e.buf.WriteString(message)
plumbing/format/gitattributes/pattern.go
@@ -66,7 +66,7 @@ func (p *pattern) Match(path []string) bool {
66
doublestar = true
67
68
69
- switch true {
+ switch {
70
case strings.Contains(pattern[0], "**"):
71
return false
72
0 commit comments