Skip to content

Commit

Permalink
chore: remove some unused code and types
Browse files Browse the repository at this point in the history
Reported as warnings by ESLint, so clean them up.
  • Loading branch information
ivanstanev committed Nov 29, 2019
1 parent e7fdc49 commit 5e960a8
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 8 deletions.
5 changes: 0 additions & 5 deletions src/cli/commands/test/formatters/legacy-format-issue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,6 @@ export function formatIssues(
}),
).join(', ');

let version;
if (vuln.metadata.packageManager.toLowerCase() === 'upstream') {
version = vuln.metadata.version;
}

const vulnOutput = {
issueHeading: createSeverityBasedIssueHeading(
vuln.metadata.severity,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import chalk from 'chalk';
import * as wrap from 'wrap-ansi';
import * as config from '../../../../lib/config';
import { TestOptions } from '../../../../lib/types';
import {
Expand Down
1 change: 0 additions & 1 deletion src/lib/project-metadata/target-builders/git.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import fs = require('fs');
import gitUrlParse = require('git-url-parse');

import subProcess = require('../../sub-process');
Expand Down
2 changes: 1 addition & 1 deletion src/lib/request/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { IncomingHttpHeaders, OutgoingHttpHeaders } from 'http';
import { OutgoingHttpHeaders } from 'http';
import { NeedleHttpVerbs } from 'needle';

export interface Payload {
Expand Down

0 comments on commit 5e960a8

Please sign in to comment.