From d94609416287533d0c528f6acd5409a087bf8355 Mon Sep 17 00:00:00 2001 From: "M. Sz" Date: Mon, 29 Mar 2021 11:41:31 +0200 Subject: [PATCH] dt1: lintfix --- d2common/d2fileformats/d2dt1/dt1.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/d2common/d2fileformats/d2dt1/dt1.go b/d2common/d2fileformats/d2dt1/dt1.go index a88d57b8..81c0624b 100644 --- a/d2common/d2fileformats/d2dt1/dt1.go +++ b/d2common/d2fileformats/d2dt1/dt1.go @@ -179,9 +179,6 @@ func LoadDT1(fileData []byte) (*DT1, error) { tile.Blocks = make([]Block, numBlocks) br.SkipBytes(numUnknownTileBytes4) - if err != nil { - return nil, err - } result.Tiles[tileIdx] = tile } @@ -202,9 +199,6 @@ func LoadDT1(fileData []byte) (*DT1, error) { } br.SkipBytes(numUnknownBlockBytes) - if err != nil { - return nil, err - } result.Tiles[tileIdx].Blocks[blockIdx].GridX, err = br.ReadByte() if err != nil { @@ -227,9 +221,6 @@ func LoadDT1(fileData []byte) (*DT1, error) { } br.SkipBytes(numUnknownBlockBytes) - if err != nil { - return nil, err - } result.Tiles[tileIdx].Blocks[blockIdx].FileOffset, err = br.ReadInt32() if err != nil {