mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-18 01:25:41 -05:00
Address error IDE0270 after MsBuild update (#1865)
This commit is contained in:
@@ -454,11 +454,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Security
|
||||
this.originalState = original;
|
||||
this.exists = !context.IsNewObject;
|
||||
|
||||
Database? parent = context.Server.GetSmoObject(new Urn(context.ParentUrn)) as Database;
|
||||
if (parent == null)
|
||||
{
|
||||
throw new ArgumentException("Context ParentUrn is invalid");
|
||||
}
|
||||
Database? parent = context.Server.GetSmoObject(new Urn(context.ParentUrn)) as Database ?? throw new ArgumentException("Context ParentUrn is invalid");
|
||||
this.parent = parent;
|
||||
|
||||
this.roleNames = this.PopulateRoles();
|
||||
|
||||
Reference in New Issue
Block a user