Skip to content
This repository has been archived by the owner on Jul 8, 2024. It is now read-only.

Commit

Permalink
updating based on linter feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
madflojo committed Mar 2, 2024
1 parent e2f76a0 commit e576f75
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/mock/mock_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func TestMocking(t *testing.T) {
return []byte{}, hord.ErrNil
},
// Create a fake SET function
SetFunc: func(key string, data []byte) error {
SetFunc: func(key string, _ []byte) error {
if key == "works" {
return nil
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/redis/redis.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ func Dial(conf Config) (*Database, error) {
return c, nil
},
// Used to Test the provided connection
TestOnBorrow: func(c redis.Conn, t time.Time) error {
TestOnBorrow: func(c redis.Conn, _ time.Time) error {
if !sentinel.TestRole(c, "master") {
return fmt.Errorf("server is not a master")
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/redis/redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func TestConnectivity(t *testing.T) {
}
})

t.Run("Fake TLS", func(t *testing.T) {
t.Run("Fake TLS", func(_ *testing.T) {
_, _ = Dial(Config{
ConnectTimeout: time.Duration(5) * time.Second,
Server: "redis:6379",
Expand Down

0 comments on commit e576f75

Please sign in to comment.