We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7d67818 commit 028436dCopy full SHA for 028436d
src/proxy/processors/push-action/checkEmptyBranch.ts
@@ -8,10 +8,7 @@ const isEmptyBranch = async (action: Action) => {
8
if (action.commitFrom === EMPTY_COMMIT_HASH) {
9
try {
10
const type = await git.raw(['cat-file', '-t', action.commitTo || '']);
11
- const known = type.trim() === 'commit';
12
- if (known) {
13
- return true;
14
- }
+ return type.trim() === 'commit';
15
} catch (err) {
16
console.log(`Commit ${action.commitTo} not found: ${err}`);
17
}
0 commit comments