Skip to content

Commit 5f365f9

Browse files
author
Yuan Ting
authored
Update gitdiff.go
1 parent 0e4eef6 commit 5f365f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitdiff/gitdiff.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ func (f *TextFragment) Header() string {
7878
func (f *TextFragment) FuncNames() []string {
7979
funcnames := []string{}
8080
addname := func(line string) {
81-
if strings.HasPrefix(line, "func") == false || strings.Contains(def, "(") == false {
81+
if strings.HasPrefix(line, "func") == false || strings.Contains(line, "(") == false {
8282
return
8383
}
8484
def := strings.TrimRight(line, " {")

0 commit comments

Comments
 (0)