Ver Fonte

Remove useless tmp var

Sean Hanson há 5 anos atrás
pai
commit
1d23237375
1 ficheiros alterados com 1 adições e 2 exclusões
  1. 1 2
      real_decoder.go

+ 1 - 2
real_decoder.go

@@ -294,8 +294,7 @@ func (rd *realDecoder) peekInt8(offset int) (int8, error) {
 	if rd.remaining() < offset+1 {
 		return -1, ErrInsufficientData
 	}
-	tmp := int8(rd.raw[rd.off+offset])
-	return tmp, nil
+	return int8(rd.raw[rd.off+offset]), nil
 }
 
 // stacks