1
0
mirror of https://github.com/golang/go synced 2024-11-25 03:07:56 -07:00

encoding/base32, encoding/base64: removed unneeded break label

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6305086
This commit is contained in:
Thomas Alan Copeland 2012-06-25 17:18:50 -04:00 committed by Russ Cox
parent 81b7bad102
commit c08ff027c4
2 changed files with 2 additions and 4 deletions

View File

@ -237,7 +237,6 @@ func (enc *Encoding) decode(dst, src []byte) (n int, end bool, err error) {
dlen := 8
// do the top bytes contain any data?
dbufloop:
for j := 0; j < 8; {
if len(src) == 0 {
return n, false, CorruptInputError(len(osrc) - len(src) - j)
@ -258,7 +257,7 @@ func (enc *Encoding) decode(dst, src []byte) (n int, end bool, err error) {
}
dlen = j
end = true
break dbufloop
break
}
dbuf[j] = enc.decodeMap[in]
if dbuf[j] == 0xFF {

View File

@ -216,7 +216,6 @@ func (enc *Encoding) decode(dst, src []byte) (n int, end bool, err error) {
var dbuf [4]byte
dlen := 4
dbufloop:
for j := 0; j < 4; {
if len(src) == 0 {
return n, false, CorruptInputError(len(osrc) - len(src) - j)
@ -240,7 +239,7 @@ func (enc *Encoding) decode(dst, src []byte) (n int, end bool, err error) {
}
dlen = j
end = true
break dbufloop
break
}
dbuf[j] = enc.decodeMap[in]
if dbuf[j] == 0xFF {