Skip to content

Commit 835f8ac

Browse files
cuishuanggopherbot
authored andcommitted
language: use a more straightforward return value
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]>
1 parent ae68efb commit 835f8ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: language/parse.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (c CanonType) Parse(s string) (t Tag, err error) {
5959
if changed {
6060
tt.RemakeString()
6161
}
62-
return makeTag(tt), err
62+
return makeTag(tt), nil
6363
}
6464

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

0 commit comments

Comments
 (0)