From 2127e79e98a4761b3afd10444c14085b22ebd48e Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Sun, 26 Sep 2021 17:47:03 +0800 Subject: [PATCH] update --- core/init.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/init.go b/core/init.go index b50cd86..9b254b1 100644 --- a/core/init.go +++ b/core/init.go @@ -31,8 +31,9 @@ func init() { for scanner.Scan() { line := scanner.Text() if v := regexp.MustCompile(`^\s*set\s+(\S+)\s+(\S+)\s+(\S+)`).FindStringSubmatch(line); len(v) > 0 { - if Bucket(v[1]).Get(v[2]) != v[3] { - Bucket(v[1]).Set(v[2], v[3]) + b := Bucket(v[1]) + if b.Get(v[2]) != v[3] { + b.Set(v[2], v[3]) } } }