Skip to content

Commit

Permalink
Merge pull request #540 from polemius/fix_eslint_warning
Browse files Browse the repository at this point in the history
Fix: Fixing some no-unused-vars warnings from eslint
  • Loading branch information
RaeesBhatti authored Sep 16, 2019
2 parents 49dd556 + 2d0b359 commit 2bff6e4
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/commands/functions/create.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const { createSiteAddon } = require("../../utils/addons");
const fetch = require("node-fetch");
const cp = require("child_process");
const ora = require("ora");
const { track } = require("@netlify/cli-utils/src/utils/telemetry");
const chalk = require("chalk");
const {
// NETLIFYDEV,
Expand Down
2 changes: 1 addition & 1 deletion src/commands/functions/invoke.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const eventTriggeredFunctions = [
class FunctionsInvokeCommand extends Command {
async run() {
let { flags, args } = this.parse(FunctionsInvokeCommand)
const { api, site, config } = this.netlify
const { config } = this.netlify

const functionsDir =
flags.functions ||
Expand Down
2 changes: 1 addition & 1 deletion src/functions-templates/js/fauna-graphql/fauna-graphql.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { ApolloServer, gql } = require("apollo-server-lambda");
const { ApolloServer } = require("apollo-server-lambda");
const { createHttpLink } = require("apollo-link-http");
const fetch = require("node-fetch");
const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const {
} = require("graphql-tools");
const { createHttpLink } = require("apollo-link-http");
const fetch = require("node-fetch");
const { ApolloServer, gql } = require("apollo-server-lambda");
const { ApolloServer } = require("apollo-server-lambda");

exports.handler = async function(event, context) {
const schema1 = await getSchema("graphql-1"); // other Netlify functions which are graphql lambdas
Expand Down
3 changes: 0 additions & 3 deletions src/utils/serve-functions.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
const fs = require("fs");
const express = require("express");
const bodyParser = require("body-parser");
const expressLogging = require("express-logging");
const queryString = require("querystring");
const path = require("path");
const getPort = require("get-port");
const chokidar = require("chokidar");
const jwtDecode = require("jwt-decode");
const chalk = require("chalk");
const {
NETLIFYDEVLOG,
// NETLIFYDEVWARN,
Expand Down

0 comments on commit 2bff6e4

Please sign in to comment.