Skip to content

Commit 4ed5cf6

Browse files
committed
refactor: add return type for stripTrailingSlash method
1 parent d552e76 commit 4ed5cf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lib/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ export function uuid() {
88
})
99
}
1010

11-
export function stripTrailingSlash(url: string) {
12-
return url.replace(/\/$/, "");
11+
export function stripTrailingSlash(url: string): string {
12+
return url.replace(/\/$/, '')
1313
}

0 commit comments

Comments
 (0)