mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-30 09:35:38 -05:00
Fixed Azure Pipeline build warnings (#1254)
* Fixed Azure Pipeline build warnings * Removed variable declaration in SmoScriptableOperationWithFullDbAccess catch block.
This commit is contained in:
@@ -65,13 +65,9 @@ namespace Microsoft.SqlTools.ServiceLayer.TaskServices
|
||||
hasAccessToDb = GainAccessToDatabase();
|
||||
base.Execute(mode);
|
||||
}
|
||||
catch (DatabaseFullAccessException databaseFullAccessException)
|
||||
catch (DatabaseFullAccessException)
|
||||
{
|
||||
Logger.Write(TraceEventType.Warning, $"Failed to gain access to database. server|database:{ServerName}|{DatabaseName}");
|
||||
throw databaseFullAccessException;
|
||||
}
|
||||
catch
|
||||
{
|
||||
throw;
|
||||
}
|
||||
finally
|
||||
|
||||
Reference in New Issue
Block a user