Skip to content

Commit

Permalink
fix: fix the golangci-lint error
Browse files Browse the repository at this point in the history
Signed-off-by: cbluebird <[email protected]>
  • Loading branch information
cbluebird committed Dec 11, 2024
1 parent 954be36 commit a8cae9e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions service/devbox/middleware/auth_test.go
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
package middleware

import (
"github.com/golang-jwt/jwt/v5"
"log"
"testing"
"time"

"github.com/golang-jwt/jwt/v5"
)

func TestAuth(t *testing.T) {
secret, _ := GenerateTokenWithExpiry("1234567890", time.Hour)
log.Printf(secret)
t.Logf(secret)
}

// GenerateTokenWithExpiry generates a JWT token with only the expiration time
Expand Down
2 changes: 1 addition & 1 deletion service/devbox/pkg/registry/tag_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"
)

func TestTag(t *testing.T) {
func TestTag(_ *testing.T) {
client := &Client{
Username: "admin",
Password: "password",
Expand Down

0 comments on commit a8cae9e

Please sign in to comment.