]> git.ipfire.org Git - thirdparty/vuejs/pinia.git/commitdiff
style: const
authorEduardo San Martin Morote <posva13@gmail.com>
Fri, 9 Apr 2021 17:08:17 +0000 (19:08 +0200)
committerEduardo San Martin Morote <posva@users.noreply.github.com>
Sat, 10 Apr 2021 15:17:15 +0000 (17:17 +0200)
src/store.ts

index 3f935806498d6dd4ad16726125b4e0f3a9cf5b16..491d1e13a856b3be6ffc9dbb02cf18c9f31110d1 100644 (file)
@@ -95,7 +95,7 @@ function initStore<Id extends string, S extends StateTree>(
   // const state: Ref<S> = toRef(_p.state.value, $id)
 
   let isListening = true
-  let subscriptions: SubscriptionCallback<S>[] = []
+  const subscriptions: SubscriptionCallback<S>[] = []
 
   function $patch(stateMutation: (state: S) => void): void
   function $patch(partialState: DeepPartial<S>): void