Prechádzať zdrojové kódy

proto: remove commented-out code (#704)

The "return 0, errOverflow" already tells that x is always zero.
If there is a mistake, this code path should be fixed,
otherwise code that is disabled does not add any value.
Iskander (Alex) Sharipov 7 rokov pred
rodič
commit
174d648573
1 zmenil súbory, kde vykonal 0 pridanie a 1 odobranie
  1. 0 1
      proto/decode.go

+ 0 - 1
proto/decode.go

@@ -186,7 +186,6 @@ func (p *Buffer) DecodeVarint() (x uint64, err error) {
 	if b&0x80 == 0 {
 		goto done
 	}
-	// x -= 0x80 << 63 // Always zero.
 
 	return 0, errOverflow