Browse Source

dont distinguish error types

Chris Bannister 6 years ago
parent
commit
ce65ebcf60
1 changed files with 0 additions and 7 deletions
  1. 0 7
      block.go

+ 0 - 7
block.go

@@ -37,13 +37,6 @@ func UncompressBlock(src, dst []byte) (di int, err error) {
 	}
 
 	di = decodeBlock(dst, src)
-	switch di {
-	case -1:
-		return 0, errors.New("TODO: bad data")
-	case -2:
-		// this is short dst really
-		return 0, ErrInvalidSourceShortBuffer
-	}
 	if di < 0 {
 		return 0, ErrInvalidSourceShortBuffer
 	}