Skip to content

Commit

Permalink
Rename noop variable
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Oct 1, 2020
1 parent 40aa1fa commit 3c76018
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/svelte-urql/src/operationStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<T> = (value: T) => T;

Expand Down Expand Up @@ -52,7 +52,7 @@ export function operationStore<Data = any, Vars = object>(
let _internalUpdate = false;

state.set = function set(value?: Partial<typeof state>) {
if (!value) value = noop;
if (!value) value = emptyUpdate;

_internalUpdate = true;
if (process.env.NODE_ENV !== 'production') {
Expand Down

0 comments on commit 3c76018

Please sign in to comment.