diff options
author | Máximo Cuadros <mcuadros@gmail.com> | 2020-07-16 21:29:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-16 21:29:58 +0200 |
commit | 641ee1dd69d3b8616127623e4b9341f4f4196d12 (patch) | |
tree | c37ce033ec64f0378acc2cde8ae59a54cdd74667 /internal/revision/parser.go | |
parent | 7906922c319b6077e8e66b70711073fb59a08a20 (diff) | |
parent | 8b8e4561eec882fad6e93d8e4257a9dc21311f3e (diff) | |
download | go-git-641ee1dd69d3b8616127623e4b9341f4f4196d12.tar.gz |
Merge pull request #125 from cristaloleg/minor-linter-fixes
*: minor linter fixes
Diffstat (limited to 'internal/revision/parser.go')
-rw-r--r-- | internal/revision/parser.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/revision/parser.go b/internal/revision/parser.go index 3efe5d7..8facf17 100644 --- a/internal/revision/parser.go +++ b/internal/revision/parser.go @@ -297,7 +297,7 @@ func (p *Parser) parseAt() (Revisioner, error) { } if t != cbrace { - return nil, &ErrInvalidRevision{fmt.Sprintf(`missing "}" in @{-n} structure`)} + return nil, &ErrInvalidRevision{s: `missing "}" in @{-n} structure`} } return AtCheckout{n}, nil @@ -419,7 +419,7 @@ func (p *Parser) parseCaretBraces() (Revisioner, error) { case re == "" && tok == emark && nextTok == minus: negate = true case re == "" && tok == emark: - return nil, &ErrInvalidRevision{fmt.Sprintf(`revision suffix brace component sequences starting with "/!" others than those defined are reserved`)} + return nil, &ErrInvalidRevision{s: `revision suffix brace component sequences starting with "/!" others than those defined are reserved`} case re == "" && tok == slash: p.unscan() case tok != slash && start: @@ -490,7 +490,7 @@ func (p *Parser) parseColonSlash() (Revisioner, error) { case re == "" && tok == emark && nextTok == minus: negate = true case re == "" && tok == emark: - return nil, &ErrInvalidRevision{fmt.Sprintf(`revision suffix brace component sequences starting with "/!" others than those defined are reserved`)} + return nil, &ErrInvalidRevision{s: `revision suffix brace component sequences starting with "/!" others than those defined are reserved`} case tok == eof: p.unscan() reg, err := regexp.Compile(re) |