Skip to content

Commit e51f22d

Browse files
committed
refactor: remove useless const
1 parent 87f73b4 commit e51f22d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,8 @@ async function exec(req: any, action: Action): Promise<Action> {
3636
const parts = refUpdates[0].split(' ');
3737
const [oldOid, newOid, rawRef] = parts;
3838

39-
const branch = rawRef.replace(/\0.*/, '').trim();
39+
action.branch = rawRef.replace(/\0.*/, '').trim();
4040

41-
action.branch = branch;
4241
action.setCommit(oldOid, newOid);
4342

4443
// Check if the offset is valid and if there's data after it

0 commit comments

Comments
 (0)