aboutsummaryrefslogtreecommitdiff
path: root/object
diff options
context:
space:
mode:
Diffstat (limited to 'object')
-rw-r--r--object/store/loose/quarantine_promote.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/object/store/loose/quarantine_promote.go b/object/store/loose/quarantine_promote.go
index 79759eb9..66bb41df 100644
--- a/object/store/loose/quarantine_promote.go
+++ b/object/store/loose/quarantine_promote.go
@@ -42,7 +42,7 @@ func promoteLooseQuarantine(parent *Store, tempName string, tempRoot *os.Root) e
return fmt.Errorf("objectstore/loose: quarantine contains unexpected file %q", entry.Name())
}
- if len(entry.Name()) == 2 && isHexString(entry.Name()) {
+ if len(entry.Name()) != 2 || !isHexString(entry.Name()) {
return fmt.Errorf("objectstore/loose: quarantine contains invalid shard %q", entry.Name())
}