@@ -43,7 +43,7 @@ func gitCommand(t *testing.T, repoPath string, args ...string) *exec.Cmd {
43
43
return exec .Command ("git" , gitArgs ... )
44
44
}
45
45
46
- func updateRef (t * testing.T , repoPath string , refname string , oid git.OID ) error {
46
+ func updateRef (t * testing.T , repoPath string , refname string , oid git.OID ) {
47
47
t .Helper ()
48
48
49
49
var cmd * exec.Cmd
@@ -53,7 +53,7 @@ func updateRef(t *testing.T, repoPath string, refname string, oid git.OID) error
53
53
} else {
54
54
cmd = gitCommand (t , repoPath , "update-ref" , refname , oid .String ())
55
55
}
56
- return cmd .Run ()
56
+ require . NoError ( t , cmd .Run () )
57
57
}
58
58
59
59
// createObject creates a new Git object, of the specified type, in
@@ -175,8 +175,7 @@ func newGitBomb(
175
175
return err
176
176
})
177
177
178
- err = updateRef (t , path , "refs/heads/master" , oid )
179
- require .NoError (t , err )
178
+ updateRef (t , path , "refs/heads/master" , oid )
180
179
}
181
180
182
181
func TestRefSelection (t * testing.T ) {
@@ -244,8 +243,7 @@ func TestRefSelection(t *testing.T) {
244
243
return err
245
244
})
246
245
247
- err = updateRef (t , path , refname , oid )
248
- require .NoError (t , err )
246
+ updateRef (t , path , refname , oid )
249
247
}
250
248
251
249
executable , err := exec .LookPath ("bin/git-sizer" )
0 commit comments