Skip to content

Commit

Permalink
fix: minor logic
Browse files Browse the repository at this point in the history
  • Loading branch information
hmerritt committed May 31, 2024
1 parent 1737c19 commit 580653c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bootstrap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ bootstrap();
// prettier-ignore
async function bootstrap() {
const gitCommitHash = await core.run(`git rev-parse HEAD`, pathRoot, '');
const gitCommitHashShort = gitCommitHash ? core.shorten(gitCommitHash) : '';
const gitCommitHashShort = core.shorten(gitCommitHash) || '';
const gitBranch = await core.getGitBranch(pathRoot);
const appVersion = packageJSON?.version;
const appName = packageJSON?.name;
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export async function bootstrap(
}

/**
* Shortens a string at both ends, separated by '...', eg '123456789' -> '12345...789'
* Shortens a string at both ends, separated by `...`, eg `123456789` -> `12345...789`
*/
export function shorten(str: string | undefined, numCharsStart = 6, numCharsEnd = 4) {
if (!str || str?.length <= 11) return str;
Expand Down
2 changes: 1 addition & 1 deletion scripts/bootstrap/version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import * as core from "./core";
/**
* Internal adrift version.
*/
export const adriftVersion = "0.11.500";
export const adriftVersion = "0.11.502";

/**
* Bumps the adrift `patch` version number using the total commit count.
Expand Down

0 comments on commit 580653c

Please sign in to comment.