Skip to content

Commit 74756ea

Browse files
committed
chore(linter): ignore Redis deprecation notices
1 parent ca5f976 commit 74756ea

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

internal/commands/database/session/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func (s *listCommand) Execute(exec commands.Executor, uuid string) (output.Outpu
6161
outputFn = mysql
6262
case upcloud.ManagedDatabaseServiceTypePostgreSQL:
6363
outputFn = pg
64-
case upcloud.ManagedDatabaseServiceTypeRedis:
64+
case upcloud.ManagedDatabaseServiceTypeRedis: //nolint:staticcheck // To be removed when Redis support has been removed
6565
outputFn = redis
6666
default:
6767
return nil, fmt.Errorf("session list not supported for database type %s", db.Type)
@@ -155,7 +155,7 @@ func pg(sessions upcloud.ManagedDatabaseSessions) output.Output {
155155
func redis(sessions upcloud.ManagedDatabaseSessions) output.Output {
156156
rows := make([]output.TableRow, 0)
157157

158-
for _, session := range sessions.Redis {
158+
for _, session := range sessions.Redis { //nolint:staticcheck // To be removed when Redis support has been removed
159159
rows = append(rows, output.TableRow{
160160
session.Id,
161161
session.Query,

internal/commands/database/show.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ func getVersion(db *upcloud.ManagedDatabase) string {
160160
case "pg":
161161
return db.Metadata.PGVersion
162162
case "redis":
163-
return db.Metadata.RedisVersion
163+
return db.Metadata.RedisVersion //nolint:staticcheck // To be removed when Redis support has been removed
164164
}
165165
return ""
166166
}

0 commit comments

Comments
 (0)