Commit faa69b90 authored by dchenk's avatar dchenk Committed by Brad Fitzpatrick

encoding/base32: remove redundant conditional

Immediately following the conditional block removed here is a loop
which checks exactly what the conditional already checked, so the
entire conditional is redundant.

Change-Id: I892fd9f2364d87e2c1cacb0407531daec6643183
Reviewed-on: https://go-review.googlesource.com/114000Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 31ef3846
......@@ -96,10 +96,6 @@ func (enc Encoding) WithPadding(padding rune) *Encoding {
// so Encode is not appropriate for use on individual blocks
// of a large data stream. Use NewEncoder() instead.
func (enc *Encoding) Encode(dst, src []byte) {
if len(src) == 0 {
return
}
for len(src) > 0 {
var b [8]byte
......
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