From c08ff027c42807ecf3fdab75e13dca5caab96323 Mon Sep 17 00:00:00 2001 From: Thomas Alan Copeland Date: Mon, 25 Jun 2012 17:18:50 -0400 Subject: [PATCH] encoding/base32, encoding/base64: removed unneeded break label R=golang-dev, rsc CC=golang-dev https://golang.org/cl/6305086 --- src/pkg/encoding/base32/base32.go | 3 +-- src/pkg/encoding/base64/base64.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pkg/encoding/base32/base32.go b/src/pkg/encoding/base32/base32.go index 71da6e22b12..dbefc48fa37 100644 --- a/src/pkg/encoding/base32/base32.go +++ b/src/pkg/encoding/base32/base32.go @@ -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 { diff --git a/src/pkg/encoding/base64/base64.go b/src/pkg/encoding/base64/base64.go index 0b842f06610..e66672a1c93 100644 --- a/src/pkg/encoding/base64/base64.go +++ b/src/pkg/encoding/base64/base64.go @@ -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 {