Skip to content

Commit fd28eba

Browse files
committed
apply suggestions from review
1 parent 5a99970 commit fd28eba

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

ts/config.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -170,11 +170,10 @@ export const contentRepoUrl = pipe(
170170
E.getOrElse(() => DEFAULT_CONTENT_REPO_URL)
171171
);
172172

173-
export const newContentRepoUrl = pipe(
174-
Config.NEW_CONTENT_REPO_URL,
175-
NonEmptyString.decode,
176-
E.getOrElse(() => NEW_DEFAULT_CONTENT_REPO_URL)
177-
);
173+
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;
178177

179178
export const totMessageFetchWorkers = pipe(
180179
parseInt(Config.TOT_MESSAGE_FETCH_WORKERS, 10),

0 commit comments

Comments
 (0)