File tree Expand file tree Collapse file tree 3 files changed +288680
-58694
lines changed Expand file tree Collapse file tree 3 files changed +288680
-58694
lines changed Original file line number Diff line number Diff line change @@ -234,13 +234,18 @@ function buildSdk() {
234234}
235235
236236function logName ( Arn ) {
237- const [ logGroupName , logStreamName ] = Arn . split ( ":log-group:" )
238- . pop ( )
239- . split ( ":log-stream:" ) ;
240- if ( logGroupName === "null" || logStreamName === "null" )
241- return {
242- logGroupName : undefined ,
243- logStreamName : undefined ,
244- } ;
245- return { logGroupName, logStreamName } ;
237+ const logs = {
238+ logGroupName : undefined ,
239+ logStreamName : undefined ,
240+ } ;
241+ if ( Arn ) {
242+ const [ logGroupName , logStreamName ] = Arn . split ( ":log-group:" )
243+ . pop ( )
244+ . split ( ":log-stream:" ) ;
245+ if ( logGroupName !== "null" && logStreamName !== "null" ) {
246+ logs . logGroupName = logGroupName ;
247+ logs . logStreamName = logStreamName ;
248+ }
249+ }
250+ return logs ;
246251}
You can’t perform that action at this time.
0 commit comments