Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: elisasre/go-common
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v1.4.17
Choose a base ref
...
head repository: elisasre/go-common
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v1.4.18
Choose a head ref
  • 2 commits
  • 1 file changed
  • 1 contributor

Commits on Apr 10, 2024

  1. remove raw encoding

    zetaab authored Apr 10, 2024

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    0781304 View commit details
  2. Merge pull request #269 from elisasre/zetaab-patch-1

    remove raw encoding
    zetaab authored Apr 10, 2024

    Unverified

    This user has not yet uploaded their public signing key.
    Copy the full SHA
    1de5bc7 View commit details
Showing with 1 addition and 4 deletions.
  1. +1 −4 crypto.go
5 changes: 1 addition & 4 deletions crypto.go
Original file line number Diff line number Diff line change
@@ -18,10 +18,7 @@ import (
func Base64decode(v string) (string, error) {
data, err := base64.StdEncoding.DecodeString(v)
if err != nil {
data, err = base64.RawStdEncoding.DecodeString(v)
if err != nil {
return "", fmt.Errorf("base64 decode failed: %w", err)
}
return "", fmt.Errorf("base64 decode failed: %w", err)
}
return string(data), nil
}