Permalink
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (27 sloc) 848 Bytes

RCS1174: Remove redundant async/await

Property Value
Id RCS1174
Category Redundancy
Default Severity Info
Enabled by Default -
Supports Fade-Out -
Supports Fade-Out Analyzer

Example

Code with Diagnostic

public static async Task<object> FooAsync() // RCS1174
{
    return await GetAsync().ConfigureAwait(false);
}

Code with Fix

public static Task<object> FooAsync()
{
    return GetAsync();
}

See Also

(Generated with DotMarkdown)