A synchronously computed value is returned with Task.FromResult(...)
. Although, the method only returns a task without a value; thus, the value is unnecessary.
Either change the return type of the method, so it returns the computed value. Alternatively, replace the use of Task.FromResult(...)
with Task.CompletedTask
.