Skip to content

Commit b837306

Browse files
gcatanesepabloai
andcommitted
Update src/service.ts
Co-authored-by: Pablo Igarzábal <[email protected]>
1 parent b2c362f commit b837306

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class Service {
4949
}
5050

5151
if(config.environment === "LIVE") {
52-
if(config.liveEndpointUrlPrefix === undefined || config.liveEndpointUrlPrefix === "") {
52+
if(!config?.liveEndpointUrlPrefix) {
5353
throw new Error("Live endpoint URL prefix must be provided for LIVE environment.");
5454
}
5555
}

0 commit comments

Comments
 (0)