Skip to content

Commit

Permalink
Lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Jul 15, 2020
1 parent a736956 commit ad637f2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/PostGraphileLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ module.exports = class PostGraphileLink extends ApolloLink {
}

request(operation) {
return new Observable(observer => {
return new Observable((observer) => {
performQuery(
this.pool,
this.schema,
operation.query,
operation.variables,
operation.operationName,
)
.then(data => {
.then((data) => {
if (!observer.closed) {
observer.next(data);
observer.complete();
}
})
.catch(error => {
.catch((error) => {
if (!observer.closed) {
observer.error(error);
}
Expand Down
2 changes: 1 addition & 1 deletion lib/RemoveNodeInterfaceFromQueryPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = function RemoveNodeInterfaceFromQueryPlugin(builder) {
if (!context.scope.isRootQuery) {
return obj;
}
const { isTypeOf, ...rest } = obj;
const { isTypeOf: _deleteIsTypeOf, ...rest } = obj;
return rest;
});
};
2 changes: 1 addition & 1 deletion lib/RenamedQueryPlugin.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = function RenamedQueryPlugin(builder) {
builder.hook("build", build =>
builder.hook("build", (build) =>
build.extend(
build,
{
Expand Down
2 changes: 1 addition & 1 deletion lib/performQuery.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module.exports = async function performQuery(
operationName,
) {
const queryString = typeof query === "string" ? query : print(query);
return withPostGraphileContext({ pgPool }, async context =>
return withPostGraphileContext({ pgPool }, async (context) =>
graphql(
schema, // The schema from `createPostGraphileSchema`
queryString,
Expand Down

0 comments on commit ad637f2

Please sign in to comment.