1
0
Fork 0

fix(core): Remove unneeded warning

This commit is contained in:
joostdecock 2021-10-16 12:28:45 +02:00
parent 706e27945d
commit 7ec07d9db2

View file

@ -141,10 +141,8 @@ function snappedOption(option, pattern) {
snap, snap,
} }
})) }))
if (abs < snap.max && abs >= snap.min) return snap.snap if (abs <= snap.max && abs >= snap.min) return snap.snap
} }
// If we end up here, the snap config is wrong
pattern.raise.warning(`Invalid snap config for option ${option}`)
return abs return abs
} }