diff --git a/tools/serverpod_cli/lib/src/analyzer/dart/endpoints_analyzer.dart b/tools/serverpod_cli/lib/src/analyzer/dart/endpoints_analyzer.dart index 981dad8ec3..06db8d58c4 100644 --- a/tools/serverpod_cli/lib/src/analyzer/dart/endpoints_analyzer.dart +++ b/tools/serverpod_cli/lib/src/analyzer/dart/endpoints_analyzer.dart @@ -43,8 +43,7 @@ class EndpointsAnalyzer { var oldDefinitions = _endpointDefinitions; await analyze(collector: CodeGenerationCollector()); - var shared = _endpointDefinitions.intersection(oldDefinitions); - if (shared.length != oldDefinitions.length) { + if (_endpointDefinitions.length != oldDefinitions.length) { return true; }