Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Better comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-rao-a committed Oct 16, 2016
1 parent 890a9ea commit ddfa63e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/goImport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function listPackages(excludeImportedPkgs: boolean = false): Thenable<str
}
let lines = stdout.toString().split('\n');
if (lines[lines.length - 1] === '') {
// Remove the trailing empty line
// Drop the empty entry from the final '\n'
lines.pop();
}
return resolve(lines);
Expand All @@ -36,7 +36,7 @@ export function listPackages(excludeImportedPkgs: boolean = false): Thenable<str
let pkgs = values[0];
let importedPkgs = values [1];

if (!vendorSupport || !vscode.window.activeTextEditor) {
if (!vendorSupport) {
if (importedPkgs.length > 0) {
pkgs = pkgs.filter(element => {
return importedPkgs.indexOf(element) === -1;
Expand Down

0 comments on commit ddfa63e

Please sign in to comment.