mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-02-05 01:25:45 -05:00
Address error IDE0270 after MsBuild update (#1865)
This commit is contained in:
@@ -803,11 +803,7 @@ namespace Microsoft.SqlTools.ServiceLayer.Agent
|
||||
/// <returns>Job server object</returns>
|
||||
private JobServer GetJobServer()
|
||||
{
|
||||
JobServer jobServer = this.dataContainer.Server.JobServer;
|
||||
if (jobServer == null)
|
||||
{
|
||||
throw new ApplicationException(SR.JobServerIsNotAvailable);
|
||||
}
|
||||
JobServer jobServer = this.dataContainer.Server.JobServer ?? throw new ApplicationException(SR.JobServerIsNotAvailable);
|
||||
return jobServer;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user