Skip to content

Commit 97b5d95

Browse files
committedApr 29, 2022
fix gofmt issue in newreposecretwithxcrypto
1 parent bbfb105 commit 97b5d95

File tree

1 file changed

+0
-1
lines changed
  • example/newreposecretwithxcrypto

1 file changed

+0
-1
lines changed
 

‎example/newreposecretwithxcrypto/main.go

-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ func addRepoSecret(ctx context.Context, client *github.Client, owner string, rep
153153
}
154154

155155
func encryptSecretWithPublicKey(publicKey *github.PublicKey, secretName string, secretValue string) (*github.EncryptedSecret, error) {
156-
157156
decodedPublicKey, err := base64.StdEncoding.DecodeString(publicKey.GetKey())
158157
if err != nil {
159158
return nil, fmt.Errorf("base64.StdEncoding.DecodeString was unable to decode public key: %v", err)

0 commit comments

Comments
 (0)
Please sign in to comment.