Skip to content
This repository was archived by the owner on Feb 24, 2026. It is now read-only.

Commit 6b27e21

Browse files
author
simonz130
committed
fix: lint
1 parent 2edba07 commit 6b27e21

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

src/main/java/com/google/cloud/logging/logback/TraceLoggingEventEnhancer.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,19 +31,15 @@ public class TraceLoggingEventEnhancer implements LoggingEventEnhancer {
3131
*
3232
* @param id The traceID, in the form projects/[PROJECT_ID]/traces/[TRACE_ID]
3333
*/
34-
public static void setCurrentTraceId(String id) { MDC.put(TRACE_ID, id); }
34+
public static void setCurrentTraceId(String id) {
35+
MDC.put(TRACE_ID, id);
36+
}
3537

3638
/** Clearing a trace Id from the MDC */
3739
public static void clearTraceId() {
3840
MDC.remove(TRACE_ID);
3941
}
40-
/**
41-
* Clearing a trace Id from the MDC
42-
*
43-
*/
44-
public static void clearTraceId() {
45-
MDC.remove(TRACE_ID);
46-
}
42+
4743
/**
4844
* Get the Trace ID associated with any logging done by the current thread.
4945
*

0 commit comments

Comments
 (0)