Skip to content

Commit db3840b

Browse files
committed
fix: minor improvement to parseAction to improve performance and readability
1 parent e0311ad commit db3840b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/proxy/processors/pre-processor/parseAction.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ const exec = async (req: {
1414
if (pathBreakdown) {
1515
if (pathBreakdown.gitPath.endsWith('git-upload-pack') && req.method === 'GET') {
1616
type = 'pull';
17-
}
18-
if (
17+
} else if (
1918
pathBreakdown.gitPath.includes('git-receive-pack') &&
2019
req.method === 'POST' &&
2120
req.headers['content-type'] === 'application/x-git-receive-pack-request'

0 commit comments

Comments
 (0)