mirror of
https://github.com/microsoft/onefuzz.git
synced 2025-06-13 02:28:10 +00:00
Add Roslyn analyzer to check results are used (#2443)
As seen in #2441, it is easy to drop return values of updated entities accidentally. This PR adds a Roslyn Analyzer which will detect when return values are unused. To explicitly ignore a value you can drop it with `_ = …;` Closes #2442.
This commit is contained in:
@ -74,8 +74,8 @@ public abstract class DownloadTestBase : FunctionTestBase {
|
||||
// set up a file to download
|
||||
var containerName = Container.Parse("xxx");
|
||||
var container = GetContainerClient(containerName);
|
||||
await container.CreateAsync();
|
||||
await container.UploadBlobAsync("yyy", new BinaryData("content"));
|
||||
_ = await container.CreateAsync();
|
||||
_ = await container.UploadBlobAsync("yyy", new BinaryData("content"));
|
||||
|
||||
var req = TestHttpRequestData.Empty("GET");
|
||||
var url = new UriBuilder(req.Url) { Query = "container=xxx&filename=yyy" }.Uri;
|
||||
|
Reference in New Issue
Block a user