Merge pull request #337 from sharwell/rm-suppression
Remove unnecessary warning suppressions
This commit is contained in:
Коммит
7838d5a9b0
|
@ -4,9 +4,6 @@
|
|||
* *
|
||||
*********************************************************/
|
||||
|
||||
// https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/2267
|
||||
#pragma warning disable SA1009 // Closing parenthesis must be spaced correctly
|
||||
|
||||
namespace Microsoft.VisualStudio.Threading.Analyzers
|
||||
{
|
||||
using System;
|
||||
|
|
|
@ -496,9 +496,7 @@
|
|||
{
|
||||
await Task.Run(async delegate
|
||||
{
|
||||
#pragma warning disable SA1501 // Statement must not be on a single line: buggy analyzer misfires
|
||||
Func<Task> yieldingDelegate = async () => { await Task.Yield(); };
|
||||
#pragma warning restore SA1501 // Statement must not be on a single line
|
||||
var asyncLock = new LockDerived
|
||||
{
|
||||
OnBeforeExclusiveLockReleasedAsyncDelegate = yieldingDelegate,
|
||||
|
|
Загрузка…
Ссылка в новой задаче