Skip to content

Commit 9a80627

Browse files
committed
lint
1 parent 0784c51 commit 9a80627

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

sentry/src/main/java/io/sentry/SentryReplayOptions.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ public final class SentryReplayOptions {
2222

2323
/**
2424
* Maximum size in bytes for network request/response bodies to be captured in replays. Bodies
25-
* larger than this will be truncated or replaced with a placeholder message. Aligned with JS:
26-
* https://github.com/getsentry/sentry-javascript/blob/98de756506705b60d1ca86cbbcfad3fd76062f8f/packages/replay-internal/src/constants.ts#L33
25+
* larger than this will be truncated or replaced with a placeholder message. Aligned
26+
* <a href="https://github.com/getsentry/sentry-javascript/blob/98de756506705b60d1ca86cbbcfad3fd76062f8f/packages/replay-internal/src/constants.ts#L33"> with JS</a>
2727
*/
2828
@ApiStatus.Internal public static final int MAX_NETWORK_BODY_SIZE = 150 * 1024;
2929

sentry/src/main/java/io/sentry/util/network/NetworkBodyParser.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,7 @@ private NetworkBodyParser() {}
5959
String content = new String(bytes, effectiveCharset);
6060
return parse(content, contentType, logger);
6161
} catch (UnsupportedEncodingException e) {
62-
if (logger != null) {
63-
logger.log(SentryLevel.WARNING, "Failed to decode bytes: " + e.getMessage());
64-
}
62+
logger.log(SentryLevel.WARNING, "Failed to decode bytes: " + e.getMessage());
6563
return NetworkBody.fromString("[Failed to decode bytes, " + bytes.length + " bytes]");
6664
}
6765
}

0 commit comments

Comments
 (0)