Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaMachina committed Jul 31, 2024
1 parent 6145b61 commit c14ce08
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/plugin/src/rules/no-unreachable-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ const RequestDirectiveLocations = new Set<string>([
function getReachableTypes(schema: GraphQLSchema): ReachableTypes {
// We don't want cache reachableTypes on test environment
// Otherwise reachableTypes will be same for all tests
let cachedValue = reachableTypesCache.get(schema);
const cachedValue = reachableTypesCache.get(schema);
if (process.env.NODE_ENV !== 'test' && cachedValue) {
return cachedValue;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/plugin/src/rules/no-unused-fields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const usedFieldsCache = new ModuleCache<GraphQLProjectConfig['schema'], UsedFiel
function getUsedFields(schema: GraphQLSchema, operations: SiblingOperations): UsedFields {
// We don't want cache usedFields on test environment
// Otherwise usedFields will be same for all tests
let cachedValue = usedFieldsCache.get(schema);
const cachedValue = usedFieldsCache.get(schema);
if (process.env.NODE_ENV !== 'test' && cachedValue) {
return cachedValue;
}
Expand Down

0 comments on commit c14ce08

Please sign in to comment.