Skip to content

Commit

Permalink
fix: linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalvas committed Aug 22, 2024
1 parent 8d90262 commit d39c547
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions app/redis_cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,11 +93,7 @@ func redisCmdDel(app *App, conn redcon.Conn, args []string) error {
return errors.New("wrong number of arguments for 'del' command")
}

keys := make([]string, len(args)-1)

for i, key := range args[1:] {
keys[i] = string(key)
}
keys := args[1:]

if err := app.cassandraDel(keys...); err != nil {
return fmt.Errorf("cassandra query: %w", err)
Expand Down Expand Up @@ -157,10 +153,7 @@ func redisCmdExists(app *App, conn redcon.Conn, args []string) error {
return errors.New("wrong number of arguments for 'exists' command")
}

keys := make([]string, len(args)-1)
for i, key := range args[1:] {
keys[i] = string(key)
}
keys := args[1:]

count, err := app.cassandraExists(keys...)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This is a simple proxy that allows you to use Cassandra as a cache for Redis.

## Cassandra

Requires a cassandra version 3.0 or higher. Also tested with YugabyteDB with the cassandra compatibility layer.
Requires a cassandra version 3.0 or higher.

### Schema

Expand Down

0 comments on commit d39c547

Please sign in to comment.