about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorelioat <elioat@tilde.institute>2024-07-04 19:27:11 -0400
committerelioat <elioat@tilde.institute>2024-07-04 19:27:11 -0400
commit7d1a6ecfb03e4115a477072abdf79499713d268c (patch)
treede372b192608bbc61275d5c8889b533d7714cb7a
parent6eab3009d6ffeb8bbfd06776f0ced47aa329019b (diff)
downloadtour-7d1a6ecfb03e4115a477072abdf79499713d268c.tar.gz
*
-rw-r--r--js/match.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/js/match.js b/js/match.js
index ae13124..dba12e1 100644
--- a/js/match.js
+++ b/js/match.js
@@ -33,8 +33,8 @@ const matchObject = (value, ...patterns) => {
             let isMatch = true;
             for (let key in pattern) {
                 if (pattern[key] !== value[key]) {
-                isMatch = false;
-                break;
+                    isMatch = false;
+                    break;
                 }
             }
             if (isMatch) return action(value);