Skip to content

Commit

Permalink
[sdk] Simplify dispose code in SelfDiagnostics (#6072)
Browse files Browse the repository at this point in the history
Co-authored-by: Mikel Blanchard <[email protected]>
  • Loading branch information
SimonCropp and CodeBlanch authored Jan 22, 2025
1 parent 6e8e190 commit 54f7d9e
Showing 1 changed file with 2 additions and 13 deletions.
15 changes: 2 additions & 13 deletions src/OpenTelemetry/Internal/SelfDiagnostics.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,6 @@ public static void EnsureInitialized()
}

/// <inheritdoc/>
public void Dispose()
{
this.Dispose(true);
GC.SuppressFinalize(this);
}

private void Dispose(bool disposing)
{
if (disposing)
{
this.configRefresher.Dispose();
}
}
public void Dispose() =>
this.configRefresher.Dispose();
}

0 comments on commit 54f7d9e

Please sign in to comment.