Skip to content

Commit 812a090

Browse files
committed
remove unused lines in get command
1 parent cdea8a6 commit 812a090

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

get.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,7 @@ import (
88
func GetCommand(c *Client, cmd redcon.Command) {
99
key := string(cmd.Args[1])
1010

11-
db := c.Db()
12-
if db.Expires(&key) {
13-
14-
}
15-
16-
i := db.GetOrExpire(&key, true)
11+
i := c.Db().GetOrExpire(&key, true)
1712
if i == nil {
1813
c.Conn().WriteNull()
1914
return

0 commit comments

Comments
 (0)