Skip to content

Commit 22c1ddc

Browse files
committed
remove if(DEV) stuff
1 parent 27ae296 commit 22c1ddc

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

packages/svelte/src/internal/client/dev/equality.js

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import { DEV } from 'esm-env';
21
import * as w from '../warnings.js';
32
import { get_proxied_value } from '../proxy.js';
43

@@ -66,11 +65,10 @@ export function init_array_prototype_warnings() {
6665
* @returns {boolean}
6766
*/
6867
export function strict_equals(a, b) {
69-
if (DEV) {
70-
if (a !== b && get_proxied_value(a) === get_proxied_value(b)) {
71-
w.state_proxy_equality_mismatch('=== operator');
72-
}
68+
if (a !== b && get_proxied_value(a) === get_proxied_value(b)) {
69+
w.state_proxy_equality_mismatch('=== operator');
7370
}
71+
7472
return a === b;
7573
}
7674

@@ -80,10 +78,9 @@ export function strict_equals(a, b) {
8078
* @returns {boolean}
8179
*/
8280
export function equals(a, b) {
83-
if (DEV) {
84-
if (a != b && get_proxied_value(a) == get_proxied_value(b)) {
85-
w.state_proxy_equality_mismatch('== operator');
86-
}
81+
if (a != b && get_proxied_value(a) == get_proxied_value(b)) {
82+
w.state_proxy_equality_mismatch('== operator');
8783
}
84+
8885
return a == b;
8986
}

0 commit comments

Comments
 (0)