From 2049717badf509ceda2ec29493e0482135aab24d Mon Sep 17 00:00:00 2001 From: Rucciva Date: Tue, 3 Sep 2024 17:29:30 +0700 Subject: [PATCH] use the same decoder --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 93dc223..c54fcb9 100644 --- a/main.go +++ b/main.go @@ -111,7 +111,7 @@ func decodeFile(base fs.FS, f string) (err error) { } defer w.Close() - rB64 := base64.NewDecoder(base64.StdEncoding.WithPadding(base64.StdPadding), r) + rB64 := base64.NewDecoder(base64.StdEncoding, r) if _, err := io.Copy(w, rB64); err != nil { return fmt.Errorf("failed to decode file '%s' to '%s': %w", f, dec, err) }