Skip to content

Commit

Permalink
fix(owlbot-bootstrapper): add optional chaining for drift metadata (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
sofisl authored Nov 4, 2022
1 parent 6d32fa9 commit ddbef3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ function extractApiInfoFromJson(apis: DriftApi[], apiId: string): DriftApi {
for (const api of apis) {
if (
api.api_shortname === shortName ||
api.api_shortname.includes(`cloud${shortName}`)
api.api_shortname?.includes(`cloud${shortName}`)
) {
return api;
}
Expand Down

0 comments on commit ddbef3d

Please sign in to comment.