Skip to content

Commit

Permalink
fix comment typo and imports order
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitry S <dsavints@gmail.com>
  • Loading branch information
Dmitry S authored and Dmitry S committed Feb 17, 2025
1 parent 8f58513 commit cd25f5c
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkg/cosign/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import (
"encoding/hex"
"encoding/json"
"encoding/pem"
"errors"
"fmt"
"io/fs"
"net/http"
Expand All @@ -34,8 +35,6 @@ import (
"strings"
"time"

"errors"

"github.com/digitorus/timestamp"
"github.com/go-openapi/runtime"
"github.com/nozzle/throttler"
Expand Down Expand Up @@ -750,7 +749,7 @@ func verifySignatures(ctx context.Context, sigs oci.Signatures, h v1.Hash, co *C
// a. Verifies the Rekor entry in the bundle, if provided. This works offline OR
// b. If we don't have a Rekor entry retrieved via cert, do an online lookup (assuming
// we are in experimental mode).
// 3. If a certificate is provided, check it's expiration using the transparency log timestamp.
// 3. If a certificate is provided, check its expiration using the transparency log timestamp.
func verifyInternal(ctx context.Context, sig oci.Signature, h v1.Hash,
verifyFn signatureVerificationFn, co *CheckOpts) (
bundleVerified bool, err error) {
Expand Down

0 comments on commit cd25f5c

Please sign in to comment.