From 3c760185aa3eb16aee4736d96bcf6e214671de70 Mon Sep 17 00:00:00 2001 From: Phil Pluckthun Date: Thu, 1 Oct 2020 12:19:25 +0100 Subject: [PATCH] Rename noop variable --- packages/svelte-urql/src/operationStore.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/svelte-urql/src/operationStore.ts b/packages/svelte-urql/src/operationStore.ts index 184acbfb30..e2009580ba 100644 --- a/packages/svelte-urql/src/operationStore.ts +++ b/packages/svelte-urql/src/operationStore.ts @@ -4,7 +4,7 @@ import { OperationContext, CombinedError } from '@urql/core'; import { _storeUpdate } from './internal'; -const noop = Object.create(null); +const emptyUpdate = Object.create(null); type Updater = (value: T) => T; @@ -52,7 +52,7 @@ export function operationStore( let _internalUpdate = false; state.set = function set(value?: Partial) { - if (!value) value = noop; + if (!value) value = emptyUpdate; _internalUpdate = true; if (process.env.NODE_ENV !== 'production') {