condense early return

This commit is contained in:
filifa
2024-07-14 00:15:40 -05:00
parent 754f039200
commit 3cd5411d12

View File

@@ -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 {