mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-30 00:22:40 +01:00
Use more performant LINQ
This commit is contained in:
@@ -298,7 +298,7 @@ namespace Tgstation.Server.Host.Database
|
||||
else
|
||||
logger.LogDebug("No migrations to apply");
|
||||
|
||||
wasEmpty |= (await Users.AsQueryable().CountAsync(cancellationToken)) == 0;
|
||||
wasEmpty |= !await Users.AsQueryable().AnyAsync(cancellationToken);
|
||||
|
||||
return wasEmpty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user