Fixing falsely logged default subscription message (#761)

This commit is contained in:
Phil Kedy 2021-10-04 18:40:53 -04:00 committed by GitHub
parent 1acd372ae2
commit 75bdb8ce2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ namespace Microsoft.AspNetCore.Builder
if (logger != null)
{
if (defaultRoutes.Count() > 0)
if (defaultRoutes.Count() > 1)
{
logger.LogError("A default subscription to topic {name} on pubsub {pubsub} already exists.", first.Name, first.PubsubName);
}