Skip to content

Commit

Permalink
Merge pull request #1756 from snyk/refactor/do-not-show-org-name-for-…
Browse files Browse the repository at this point in the history
…experimental

refactor: Check if org is undefined in the CLI formatted output
  • Loading branch information
ipapast authored Mar 23, 2021
2 parents a872728 + d3ac141 commit 023ae6e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cli/commands/test/formatters/format-test-meta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ export function formatTestMeta(
const packageManager = res.packageManager || options.packageManager;
const targetFile = res.targetFile || res.displayTargetFile || options.file;
const openSource = res.isPrivate ? 'no' : 'yes';
const meta = [
chalk.bold(rightPadWithSpaces('Organization: ', padToLength)) + res.org,
];
const meta = res.org
? [chalk.bold(rightPadWithSpaces('Organization: ', padToLength)) + res.org]
: [];
if (options.iac) {
meta.push(
chalk.bold(rightPadWithSpaces('Type: ', padToLength)) +
Expand Down

0 comments on commit 023ae6e

Please sign in to comment.