mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-16 01:25:41 -05:00
Address error IDE0270 after MsBuild update (#1865)
This commit is contained in:
@@ -580,11 +580,7 @@ namespace Microsoft.SqlTools.ServiceLayer.QueryExecution
|
||||
/// </summary>
|
||||
private void OnInfoMessage(object sender, SqlInfoMessageEventArgs args)
|
||||
{
|
||||
SqlConnection conn = sender as SqlConnection;
|
||||
if (conn == null)
|
||||
{
|
||||
throw new InvalidOperationException(SR.QueryServiceMessageSenderNotSql);
|
||||
}
|
||||
SqlConnection conn = sender as SqlConnection ?? throw new InvalidOperationException(SR.QueryServiceMessageSenderNotSql);
|
||||
|
||||
foreach (SqlError error in args.Errors)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user