Skip to content

Commit

Permalink
style: add a comments for exported var
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Jul 31, 2022
1 parent 3c44fbd commit 017466f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion info_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ func ParseRemoteURL(URL string, r *RemoteInfo) (err error) {
return nil
}

// ErrInvalidBrLine error
var ErrInvalidBrLine = errorx.Raw("invalid git branch line text")

// ParseBranchLine to BranchInfo data
Expand Down Expand Up @@ -115,7 +116,6 @@ func ParseBranchLine(line string, verbose bool) (*BranchInfo, error) {
return info, nil
}

// eg:
func isVerboseBranchLine(line string) bool {
line = strings.Trim(line, " *\t\n\r\x0B")
return strings.ContainsRune(line, ' ')
Expand Down

0 comments on commit 017466f

Please sign in to comment.