Skip to content

Commit

Permalink
language: use a more straightforward return value
Browse files Browse the repository at this point in the history
Change-Id: I7f5d8ecc1ad6a1ff110283d2c62816170922e72c
Reviewed-on: https://go-review.googlesource.com/c/text/+/653236
Auto-Submit: Ian Lance Taylor <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
Reviewed-by: Michael Pratt <[email protected]>
LUCI-TryBot-Result: Go LUCI <[email protected]>
  • Loading branch information
cuishuang authored and gopherbot committed Feb 28, 2025
1 parent ae68efb commit 835f8ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion language/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func (c CanonType) Parse(s string) (t Tag, err error) {
if changed {
tt.RemakeString()
}
return makeTag(tt), err
return makeTag(tt), nil
}

// Compose creates a Tag from individual parts, which may be of type Tag, Base,
Expand Down

0 comments on commit 835f8ac

Please sign in to comment.