Skip to content

Commit 54f7d9e

Browse files
[sdk] Simplify dispose code in SelfDiagnostics (open-telemetry#6072)
Co-authored-by: Mikel Blanchard <[email protected]>
1 parent 6e8e190 commit 54f7d9e

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

src/OpenTelemetry/Internal/SelfDiagnostics.cs

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,6 @@ public static void EnsureInitialized()
3939
}
4040

4141
/// <inheritdoc/>
42-
public void Dispose()
43-
{
44-
this.Dispose(true);
45-
GC.SuppressFinalize(this);
46-
}
47-
48-
private void Dispose(bool disposing)
49-
{
50-
if (disposing)
51-
{
52-
this.configRefresher.Dispose();
53-
}
54-
}
42+
public void Dispose() =>
43+
this.configRefresher.Dispose();
5544
}

0 commit comments

Comments
 (0)