Skip to content

Commit

Permalink
fix: prettier issue
Browse files Browse the repository at this point in the history
  • Loading branch information
dkontorovskyy committed Nov 19, 2019
1 parent 21237af commit 94525a4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
8 changes: 6 additions & 2 deletions src/lib/errors/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,12 @@ export { ConnectionTimeoutError } from './connection-timeout-error';
export { FailedToLoadPolicyError } from './failed-to-load-policy-error';
export { PolicyNotFoundError } from './policy-not-found-error';
export { InternalServerError } from './internal-server-error';
export { FailedToGetVulnerabilitiesError } from './failed-to-get-vulnerabilities-error';
export {
FailedToGetVulnerabilitiesError,
} from './failed-to-get-vulnerabilities-error';
export { UnsupportedFeatureFlagError } from './unsupported-feature-flag-error';
export { UnsupportedPackageManagerError } from './unsupported-package-manager-error';
export {
UnsupportedPackageManagerError,
} from './unsupported-package-manager-error';
export { FailedToRunTestError } from './failed-to-run-test-error';
export { TooManyVulnPaths } from './too-many-vuln-paths';
16 changes: 10 additions & 6 deletions src/lib/project-metadata/target-builders/git.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,22 @@ export async function getInfo(packageInfo): Promise<GitTarget | null> {
}

try {
origin = (
await subProcess.execute('git', ['remote', 'get-url', 'origin'])
).trim();
origin = (await subProcess.execute('git', [
'remote',
'get-url',
'origin',
])).trim();

if (!origin) {
return null;
}

const parsedOrigin = GitUrlParse(origin);
const branch = (
await subProcess.execute('git', ['rev-parse', '--abbrev-ref', 'HEAD'])
).trim();
const branch = (await subProcess.execute('git', [
'rev-parse',
'--abbrev-ref',
'HEAD',
])).trim();

return {
remoteUrl: parsedOrigin.toString('http'),
Expand Down

0 comments on commit 94525a4

Please sign in to comment.