mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Fix a syntax error in a code comment
Signed-off-by: L2ncE <llance_24@foxmail.com>
This commit is contained in:
parent
71bba3c761
commit
637afd359b
@ -242,7 +242,7 @@ func checkSuffix(lg *zap.Logger, names []string) []string {
|
||||
snaps = append(snaps, names[i])
|
||||
} else {
|
||||
// If we find a file which is not a snapshot then check if it's
|
||||
// a vaild file. If not throw out a warning.
|
||||
// a valid file. If not throw out a warning.
|
||||
if _, ok := validFiles[names[i]]; !ok {
|
||||
if lg != nil {
|
||||
lg.Warn("found unexpected non-snap file; skipping", zap.String("path", names[i]))
|
||||
|
Loading…
x
Reference in New Issue
Block a user