Skip to content

Commit e06bea2

Browse files
committed
beautfy
1 parent cba3fc9 commit e06bea2

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ts/config.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ export const contentRepoUrl = pipe(
171171
);
172172

173173
export const newContentRepoUrl =
174-
Config.NEW_CONTENT_REPO_URL && Config.NEW_CONTENT_REPO_URL.trim().length > 0
175-
? Config.NEW_CONTENT_REPO_URL.trim()
176-
: NEW_DEFAULT_CONTENT_REPO_URL;
174+
(typeof Config.NEW_CONTENT_REPO_URL === "string" &&
175+
Config.NEW_CONTENT_REPO_URL.trim()) ||
176+
NEW_DEFAULT_CONTENT_REPO_URL;
177177

178178
export const totMessageFetchWorkers = pipe(
179179
parseInt(Config.TOT_MESSAGE_FETCH_WORKERS, 10),

0 commit comments

Comments
 (0)