Skip to content

Commit

Permalink
use the same decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
rucciva committed Sep 3, 2024
1 parent 204a6d4 commit 2049717
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 2049717

Please sign in to comment.