Skip to content

Commit

Permalink
refactor: fix typo and remove useless function (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-yu-xuan authored Feb 18, 2020
1 parent 60c31d2 commit 55a68e3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 15 deletions.
2 changes: 1 addition & 1 deletion src/get-inputs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function showInputs(inps: Inputs): void {
core.info(`[INFO] AllowEmptyCommit: ${inps.AllowEmptyCommit}`);
core.info(`[INFO] KeepFiles: ${inps.KeepFiles}`);
core.info(`[INFO] ForceOrphan: ${inps.ForceOrphan}`);
core.info(`[INFO] UserEmail: ${inps.UserEmail}`);
core.info(`[INFO] UserName: ${inps.UserName}`);
core.info(`[INFO] UserEmail: ${inps.UserEmail}`);
core.info(`[INFO] CommitMessage: ${inps.CommitMessage}`);
core.info(`[INFO] TagName: ${inps.TagName}`);
Expand Down
15 changes: 1 addition & 14 deletions src/set-tokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,7 @@ import fs from 'fs';
const cpSpawnSync = require('child_process').spawnSync;
const cpexec = require('child_process').execFileSync;
import {Inputs} from './interfaces';

export function getHomeDir(): string {
let homedir = '';

if (process.platform === 'win32') {
homedir = process.env['USERPROFILE'] || 'C:\\';
} else {
homedir = `${process.env.HOME}`;
}

core.debug(`homeDir: ${homedir}`);

return homedir;
}
import {getHomeDir} from './utils';

export function setPublishRepo(insp: Inputs): string {
if (insp.ExternalRepository) {
Expand Down

0 comments on commit 55a68e3

Please sign in to comment.