Skip to content

Commit dedc539

Browse files
committed
use short variable declaration wherever possible
1 parent f16e53a commit dedc539

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

errutil_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func TestAsTargetWiderThanError(t *testing.T) {
5555
error
5656
}
5757
var _ timeouter = err
58-
var target = new(timeouter)
58+
target := new(timeouter)
5959
match := errutil.As(err, target)
6060
if !match {
6161
const tmpl = "errutil.As(err, %[1]T(%[1]v)): got false; want true"

0 commit comments

Comments
 (0)