1
0
Fork 0

chore: Linter issues

This commit is contained in:
joostdecock 2023-09-07 20:15:40 +02:00
parent 46771ffca7
commit a253920dd5
10 changed files with 11 additions and 22 deletions

View file

@ -51,9 +51,9 @@ function flag(type, store, data) {
* @param {id} string - The flag id to remove
*/
function unflag(type, store, id) {
if (type === 'preset' && presets[preset]) {
id = presets[preset].id || presets[preset].msg
type = presets[preset].type
if (type === 'preset' && presets[id]) {
type = presets[id].type
id = presets[id].id || presets[id].msg
}
store.unset([...storeRoot, type, id])
}