Skip to content

Commit

Permalink
Remove unused values (#2669)
Browse files Browse the repository at this point in the history
* Remove unused values

I removed it because I found a variable not being used
under `packages/error-reporting`.

* Remove unnecessary space
  • Loading branch information
abetomo authored and stephenplusplus committed Oct 14, 2017
1 parent 7a6dc45 commit fdd48cf
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
3 changes: 1 addition & 2 deletions packages/error-reporting/src/google-apis/auth-client.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
'use strict';
const common = require('@google-cloud/common');
const pkg = require('../../package.json');
var logger = require('../logger.js');
var is = require('is');
var isFunction = is.fn;
var isString = is.string;
Expand Down Expand Up @@ -120,7 +119,7 @@ class RequestHandler extends common.Service {
method: 'POST',
json: {}
}, (err, body, response) => {
if (err && err.message !== 'Message cannot be empty.' &&
if (err && err.message !== 'Message cannot be empty.' &&
response.statusCode === 400) {
this._logger.error([
'Encountered an error while attempting to validate the provided',
Expand Down
4 changes: 0 additions & 4 deletions packages/error-reporting/utils/fuzzer.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,8 @@ var maxBy = require('lodash.maxby');
var random = require('lodash.random');
var is = require('is');
var isNumber = is.number;
var isObject = is.object;
var isString = is.string;
var isArray = is.array;
var isNull = is.null;
var isFunction = is.function;

function Fuzzer() { }
Expand Down Expand Up @@ -202,7 +200,6 @@ Fuzzer.prototype.generate.object = function(numProperties, currentDepth, allowed

Fuzzer.prototype._backFillUnevenTypesArrays = function(argsTypesArray) {

var largestIndex = 0;
var largestLength = (maxBy(
argsTypesArray
, function(o) { return o.length }
Expand Down Expand Up @@ -292,7 +289,6 @@ Fuzzer.prototype._generateValuesForFuzzTyping = function(typesToFuzzOnEach, inde
Fuzzer.prototype.fuzzFunctionForTypes = function(fnToFuzz, expectsArgTypes, cb, withContext) {
var expectsArgTypesChecked = isArray(expectsArgTypes) ? expectsArgTypes : [];
var typesToFuzzOnEach = this._generateTypesToFuzzWith(expectsArgTypesChecked);
var withContextChecked = (withContext !== undefined) ? withContext : null;

var returnValue = undefined;

Expand Down

0 comments on commit fdd48cf

Please sign in to comment.