Skip to content

Commit cb2e604

Browse files
committed
feat: follow convention
1 parent ae91677 commit cb2e604

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/data.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { API as GitApi, GitExtension, Remote, Repository } from "./@types/git";
2-
import stripCredential from "./helpers/stripCredential";
2+
import { stripCredential } from "./helpers/stripCredential";
33
import { basename, parse, sep } from "node:path";
44
import { CONFIG_KEYS } from "./constants";
55
import gitUrlParse from "git-url-parse";

src/helpers/stripCredential.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { URL } from "node:url";
22

3-
export default function (uri: string): string {
3+
export const stripCredential = (uri: string): string => {
44
try {
55
const url = new URL(uri);
66
url.username = "";
@@ -9,4 +9,4 @@ export default function (uri: string): string {
99
} catch (ignored) {
1010
return uri;
1111
}
12-
}
12+
};

0 commit comments

Comments
 (0)