Skip to content

Commit f483558

Browse files
committed
change: Boolean to double negation check
1 parent e21119f commit f483558

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Onyx.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ function init({
4141
initialKeyStates = {},
4242
safeEvictionKeys = [],
4343
maxCachedKeysCount = 1000,
44-
shouldSyncMultipleInstances = Boolean(global.localStorage),
44+
shouldSyncMultipleInstances = !!global.localStorage,
4545
debugSetState = false,
4646
enablePerformanceMetrics = false,
4747
skippableCollectionMemberIDs = [],

0 commit comments

Comments
 (0)