@@ -55,11 +55,11 @@ func RunCommand(cmd *cobra.Command, args string) (*cmdOut, error) {
5555 cmd .Flags ().VisitAll (func (f * pflag.Flag ) {
5656 switch v := f .Value .(type ) {
5757 case pflag.SliceValue :
58- v .Replace ([]string {})
58+ _ = v .Replace ([]string {})
5959 default :
6060 switch v .Type () {
6161 case "bool" , "string" , "int" :
62- v .Set (f .DefValue )
62+ _ = v .Set (f .DefValue )
6363 }
6464 }
6565 })
@@ -111,8 +111,8 @@ func TestPRStatus_fork(t *testing.T) {
111111 defer run .SetPrepareCmd (func (cmd * exec.Cmd ) run.Runnable {
112112 switch strings .Join (cmd .Args , " " ) {
113113 case `git config --get-regexp ^branch\.blueberries\.(remote|merge)$` :
114- return & test.OutputStub {[]byte (`branch.blueberries.remote origin
115- branch.blueberries.merge refs/heads/blueberries` ), nil }
114+ return & test.OutputStub {Out : []byte (`branch.blueberries.remote origin
115+ branch.blueberries.merge refs/heads/blueberries` )}
116116 default :
117117 panic ("not implemented" )
118118 }
@@ -312,7 +312,7 @@ No pull requests match your search in OWNER/REPO
312312 Labels []string
313313 }
314314 }{}
315- json .Unmarshal (bodyBytes , & reqBody )
315+ _ = json .Unmarshal (bodyBytes , & reqBody )
316316
317317 eq (t , reqBody .Variables .State , []string {"OPEN" , "CLOSED" , "MERGED" })
318318 eq (t , reqBody .Variables .Labels , []string {"one" , "two" , "three" })
@@ -357,7 +357,7 @@ func TestPRList_filteringClosed(t *testing.T) {
357357 State []string
358358 }
359359 }{}
360- json .Unmarshal (bodyBytes , & reqBody )
360+ _ = json .Unmarshal (bodyBytes , & reqBody )
361361
362362 eq (t , reqBody .Variables .State , []string {"CLOSED" , "MERGED" })
363363}
@@ -381,7 +381,7 @@ func TestPRList_filteringAssignee(t *testing.T) {
381381 Q string
382382 }
383383 }{}
384- json .Unmarshal (bodyBytes , & reqBody )
384+ _ = json .Unmarshal (bodyBytes , & reqBody )
385385
386386 eq (t , reqBody .Variables .Q , `repo:OWNER/REPO assignee:hubot is:pr sort:created-desc is:merged label:"needs tests" base:"develop"` )
387387}
0 commit comments