condense early return
This commit is contained in:
3
main.go
3
main.go
@@ -83,8 +83,7 @@ func updateFeed(feedResp []byte, gamePk, ts, updateId string) ([]byte, error) {
|
||||
|
||||
patches, err := extractPatches(diffPatchResp)
|
||||
if err != nil {
|
||||
feedResp, err = statsapi.RequestFeed(gamePk)
|
||||
return feedResp, err
|
||||
return statsapi.RequestFeed(gamePk)
|
||||
}
|
||||
|
||||
for _, patch := range patches {
|
||||
|
||||
Reference in New Issue
Block a user