Skip to content

Commit 840fb58

Browse files
committed
refactor: cleaned up
1 parent 581aa1e commit 840fb58

File tree

2 files changed

+1
-4
lines changed

2 files changed

+1
-4
lines changed

src/RemoteSchemaFactory.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ import {
4141
ValueNode,
4242
} from 'graphql'
4343
import { ApolloLink } from 'apollo-link'
44-
import { Observable } from 'subscriptions-transport-ws'
4544
import { makeExecutableSchema } from 'graphql-tools'
4645
import linkToFetcher from 'graphql-tools/dist/stitching/linkToFetcher'
4746
import defaultMergedResolver from 'graphql-tools/dist/stitching/defaultMergedResolver'
@@ -64,14 +63,12 @@ export type FetcherOperation = {
6463
* without the need to re-run `makeExecutableSchema` which is expensive to run
6564
*/
6665
export class ExecutableSchemaFactory {
67-
private link: ApolloLink
6866
private fetcher: Fetcher
6967
private introspectionSchema: GraphQLSchema
7068
private executableSchema: GraphQLSchema
7169

7270
constructor(introspectionSchema: GraphQLSchema, link: ApolloLink) {
7371
this.introspectionSchema = introspectionSchema
74-
this.link = link
7572
this.fetcher = linkToFetcher(link)
7673
this.init()
7774
}
@@ -81,7 +78,6 @@ export class ExecutableSchemaFactory {
8178
}
8279

8380
setLink(link: ApolloLink): void {
84-
this.link = link
8581
this.fetcher = linkToFetcher(link)
8682
}
8783

tsconfig.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"moduleResolution": "node",
55
"module": "commonjs",
66
"sourceMap": true,
7+
"noUnusedLocals": true,
78
"rootDir": "./src",
89
"outDir": "./dist",
910
"lib": ["esnext"]

0 commit comments

Comments
 (0)