Skip to content

Commit d0b30ee

Browse files
committed
Fix getServiceEndpoint
1 parent 80330b4 commit d0b30ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/globals.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export default class Globals {
7070
public static getServiceEndpoint (service: string) {
7171
if (Globals.serverless.providers.aws.sdk) {
7272
const serviceConf = Globals.serverless.providers.aws.sdk.config[service];
73-
return serviceConf.endpoint || null;
73+
return (serviceConf && serviceConf.endpoint) || null;
7474
}
7575
return null;
7676
}

0 commit comments

Comments
 (0)