Commit c08ff027 authored by Thomas Alan Copeland's avatar Thomas Alan Copeland Committed by Russ Cox

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

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/6305086
parent 81b7bad1
......@@ -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 {
......
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment