Skip to content

Commit ad637f2

Browse files
committed
Lint fixes
1 parent a736956 commit ad637f2

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

lib/PostGraphileLink.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ module.exports = class PostGraphileLink extends ApolloLink {
1010
}
1111

1212
request(operation) {
13-
return new Observable(observer => {
13+
return new Observable((observer) => {
1414
performQuery(
1515
this.pool,
1616
this.schema,
1717
operation.query,
1818
operation.variables,
1919
operation.operationName,
2020
)
21-
.then(data => {
21+
.then((data) => {
2222
if (!observer.closed) {
2323
observer.next(data);
2424
observer.complete();
2525
}
2626
})
27-
.catch(error => {
27+
.catch((error) => {
2828
if (!observer.closed) {
2929
observer.error(error);
3030
}

lib/RemoveNodeInterfaceFromQueryPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = function RemoveNodeInterfaceFromQueryPlugin(builder) {
99
if (!context.scope.isRootQuery) {
1010
return obj;
1111
}
12-
const { isTypeOf, ...rest } = obj;
12+
const { isTypeOf: _deleteIsTypeOf, ...rest } = obj;
1313
return rest;
1414
});
1515
};

lib/RenamedQueryPlugin.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = function RenamedQueryPlugin(builder) {
2-
builder.hook("build", build =>
2+
builder.hook("build", (build) =>
33
build.extend(
44
build,
55
{

lib/performQuery.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ module.exports = async function performQuery(
99
operationName,
1010
) {
1111
const queryString = typeof query === "string" ? query : print(query);
12-
return withPostGraphileContext({ pgPool }, async context =>
12+
return withPostGraphileContext({ pgPool }, async (context) =>
1313
graphql(
1414
schema, // The schema from `createPostGraphileSchema`
1515
queryString,

0 commit comments

Comments
 (0)