Skip to content

Commit 028436d

Browse files
Update src/proxy/processors/push-action/checkEmptyBranch.ts
Co-authored-by: Thomas Cooper <[email protected]> Signed-off-by: Juan Escalada <[email protected]>
1 parent 7d67818 commit 028436d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/proxy/processors/push-action/checkEmptyBranch.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ const isEmptyBranch = async (action: Action) => {
88
if (action.commitFrom === EMPTY_COMMIT_HASH) {
99
try {
1010
const type = await git.raw(['cat-file', '-t', action.commitTo || '']);
11-
const known = type.trim() === 'commit';
12-
if (known) {
13-
return true;
14-
}
11+
return type.trim() === 'commit';
1512
} catch (err) {
1613
console.log(`Commit ${action.commitTo} not found: ${err}`);
1714
}

0 commit comments

Comments
 (0)