Skip to content

Commit 017fbd6

Browse files
committed
chore: lint source code
1 parent 2103e93 commit 017fbd6

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/main.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,16 @@ core.info(`Running in ${baseDir}`)
3131
core.info('> Checking for uncommitted changes in the git working tree...')
3232
const changedFiles = (await git.diffSummary(['--cached'])).files.length
3333
// continue if there are any changes or if the allow-empty commit argument is included
34-
if (changedFiles > 0 || matchGitArgs(getInput('commit') || '').includes('--allow-empty')) {
34+
if (
35+
changedFiles > 0 ||
36+
matchGitArgs(getInput('commit') || '').includes('--allow-empty')
37+
) {
3538
core.info(`> Found ${changedFiles} changed files.`)
36-
core.debug(`--allow-empty argument detected: ${matchGitArgs(getInput('commit') || '').includes('--allow-empty')}`)
39+
core.debug(
40+
`--allow-empty argument detected: ${matchGitArgs(
41+
getInput('commit') || ''
42+
).includes('--allow-empty')}`
43+
)
3744

3845
await git
3946
.addConfig('user.email', getInput('author_email'), undefined, log)

0 commit comments

Comments
 (0)