ensure conditions all work properly in the case of a previous error (#18405)
ensure conditions all work properly in the case of a previous error (#18405)

Co-authored-by: Scott Beddall <ea0e0ef222a6d11fe3fc5aefef233d927e498f16@microsoft.com>
Azure/azure-sdk-for-go,Azure/azure-sdk-for-go,Azure/azure-sdk-for-go,Azure/azure-sdk-for-go