mirror of
https://github.com/redis/go-redis.git
synced 2025-07-16 13:21:51 +03:00
perf: reduce unnecessary memory allocation (#3399)
Signed-off-by: fukua95 <fukua95@gmail.com> Co-authored-by: Nedyalko Dyakov <1547186+ndyakov@users.noreply.github.com>
This commit is contained in:
@ -460,7 +460,7 @@ var _ = Describe("Commands", func() {
|
||||
}
|
||||
|
||||
// read the defaults to set them back later
|
||||
for setting, _ := range expected {
|
||||
for setting := range expected {
|
||||
val, err := client.ConfigGet(ctx, setting).Result()
|
||||
Expect(err).NotTo(HaveOccurred())
|
||||
defaults[setting] = val[setting]
|
||||
|
Reference in New Issue
Block a user