We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e4eef6 commit 5f365f9Copy full SHA for 5f365f9
gitdiff/gitdiff.go
@@ -78,7 +78,7 @@ func (f *TextFragment) Header() string {
78
func (f *TextFragment) FuncNames() []string {
79
funcnames := []string{}
80
addname := func(line string) {
81
- if strings.HasPrefix(line, "func") == false || strings.Contains(def, "(") == false {
+ if strings.HasPrefix(line, "func") == false || strings.Contains(line, "(") == false {
82
return
83
}
84
def := strings.TrimRight(line, " {")
0 commit comments