Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Asier Isayas committed Dec 20, 2024
1 parent c9f8490 commit 84b30ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/DatabaseAccountUtility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ export function isPublicInternetAccessAllowed(): boolean {

export function getWorkloadType(): WorkloadType {
const tags: Tags = userContext?.databaseAccount?.tags;
const workloadType: WorkloadType = tags[TagNames.WorkloadType] as WorkloadType;
const workloadType: WorkloadType = tags && (tags[TagNames.WorkloadType] as WorkloadType);
return workloadType;
}

0 comments on commit 84b30ac

Please sign in to comment.