Skip to content

Commit 743ab0a

Browse files
committed
style: format code
1 parent 6b96943 commit 743ab0a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/get-project-id.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,2 @@
11
export default ({ envCi: { service } = {}, env: { CI_PROJECT_ID } }) =>
2-
service === "gitlab" && CI_PROJECT_ID
3-
? CI_PROJECT_ID
4-
: null;
2+
service === "gitlab" && CI_PROJECT_ID ? CI_PROJECT_ID : null;

test/get-project-path.test.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ test("Parse repo id with context in repo URL", (t) => {
2424

2525
test("Parse repo id with context not in repo URL", (t) => {
2626
t.is(getProjectPath({ env: {} }, "https://gitlbab.com/context", "https://gitlab.com/owner/repo.git"), "owner/repo");
27-
t.is(getProjectPath({ env: {} }, "https://gitlab.com/context", "git+ssh://[email protected]/owner/repo.git"), "owner/repo");
27+
t.is(
28+
getProjectPath({ env: {} }, "https://gitlab.com/context", "git+ssh://[email protected]/owner/repo.git"),
29+
"owner/repo"
30+
);
2831
});
2932

3033
test("Parse repo id with organization and subgroup", (t) => {

0 commit comments

Comments
 (0)