Skip to content

Commit fdd48cf

Browse files
abetomostephenplusplus
authored andcommitted
Remove unused values (#2669)
* Remove unused values I removed it because I found a variable not being used under `packages/error-reporting`. * Remove unnecessary space
1 parent 7a6dc45 commit fdd48cf

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

packages/error-reporting/src/google-apis/auth-client.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@
1818
'use strict';
1919
const common = require('@google-cloud/common');
2020
const pkg = require('../../package.json');
21-
var logger = require('../logger.js');
2221
var is = require('is');
2322
var isFunction = is.fn;
2423
var isString = is.string;
@@ -120,7 +119,7 @@ class RequestHandler extends common.Service {
120119
method: 'POST',
121120
json: {}
122121
}, (err, body, response) => {
123-
if (err && err.message !== 'Message cannot be empty.' &&
122+
if (err && err.message !== 'Message cannot be empty.' &&
124123
response.statusCode === 400) {
125124
this._logger.error([
126125
'Encountered an error while attempting to validate the provided',

packages/error-reporting/utils/fuzzer.js

-4
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,8 @@ var maxBy = require('lodash.maxby');
2323
var random = require('lodash.random');
2424
var is = require('is');
2525
var isNumber = is.number;
26-
var isObject = is.object;
2726
var isString = is.string;
2827
var isArray = is.array;
29-
var isNull = is.null;
3028
var isFunction = is.function;
3129

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

203201
Fuzzer.prototype._backFillUnevenTypesArrays = function(argsTypesArray) {
204202

205-
var largestIndex = 0;
206203
var largestLength = (maxBy(
207204
argsTypesArray
208205
, function(o) { return o.length }
@@ -292,7 +289,6 @@ Fuzzer.prototype._generateValuesForFuzzTyping = function(typesToFuzzOnEach, inde
292289
Fuzzer.prototype.fuzzFunctionForTypes = function(fnToFuzz, expectsArgTypes, cb, withContext) {
293290
var expectsArgTypesChecked = isArray(expectsArgTypes) ? expectsArgTypes : [];
294291
var typesToFuzzOnEach = this._generateTypesToFuzzWith(expectsArgTypesChecked);
295-
var withContextChecked = (withContext !== undefined) ? withContext : null;
296292

297293
var returnValue = undefined;
298294

0 commit comments

Comments
 (0)