Skip to content

Commit

Permalink
Inline defaultFragmentMatcher function.
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Jul 27, 2018
1 parent 09cbca7 commit 1acbef6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/apollo-cache-inmemory/src/readFromStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ export class StoreReader {
contextValue,
variableValues,
// Default matcher always matches all fragments
fragmentMatcher = defaultFragmentMatcher,
fragmentMatcher = () => true,
}: ExecStoreQueryOptions): ExecResult {
const mainDefinition = getMainDefinition(query);
const fragments = getFragmentDefinitions(query);
Expand Down Expand Up @@ -544,10 +544,6 @@ function readStoreResolver(
};
}

function defaultFragmentMatcher() {
return true;
}

const hasOwn = Object.prototype.hasOwnProperty;

function merge(
Expand Down

0 comments on commit 1acbef6

Please sign in to comment.