Skip to content

Commit f35c402

Browse files
committed
Cleanup remnant cast
1 parent 944c6ce commit f35c402

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Tools/dotnet-counters/CounterMonitor.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public async Task<ReturnCode> Monitor(
244244
catch (DiagnosticToolException dte)
245245
{
246246
_console.Error.WriteLine(dte.Message);
247-
return (ReturnCode)dte.ReturnCode;
247+
return dte.ReturnCode;
248248
}
249249
finally
250250
{
@@ -351,7 +351,7 @@ public async Task<ReturnCode> Collect(
351351
catch (DiagnosticToolException dte)
352352
{
353353
_console.Error.WriteLine(dte.Message);
354-
return (ReturnCode)dte.ReturnCode;
354+
return dte.ReturnCode;
355355
}
356356
finally
357357
{

0 commit comments

Comments
 (0)