Skip to content

Commit

Permalink
better perf in IsSqlDatabaseProjectAsync (#2772)
Browse files Browse the repository at this point in the history
better to do a in-mem string ends with before a async better perf in IsSqlDatabaseProjectAsync
  • Loading branch information
SimonCropp authored Jan 8, 2025
1 parent 121dec1 commit 4b23e08
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/GUI/Shared/Extensions/ProjectExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ public static async Task<bool> IsSqlDatabaseProjectAsync(this Project project)
return false;
}

return await project.IsMsBuildSqlProjOrMsBuildSqlProjectAsync()
|| project.FullPath.EndsWith(".sqlproj", StringComparison.OrdinalIgnoreCase);
return project.FullPath.EndsWith(".sqlproj", StringComparison.OrdinalIgnoreCase)
|| await project.IsMsBuildSqlProjOrMsBuildSqlProjectAsync();
}

public static async Task<bool> IsMsBuildSqlProjOrMsBuildSqlProjectAsync(this Project project)
Expand Down

0 comments on commit 4b23e08

Please sign in to comment.