Skip to content

Commit 9dfc4a4

Browse files
committed
fix build
1 parent 2c3f4d5 commit 9dfc4a4

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

allure-rest-assured/src/main/java/io/qameta/allure/restassured/AllureRestAssured.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public class AllureRestAssured implements OrderedFilter {
4444

4545
private static final String HIDDEN_PLACEHOLDER = "[ BLACKLISTED ]";
4646

47-
private int maxAllowedPrettifyLength = 1048576;
47+
private int maxAllowedPrettifyLength = 1_048_576;
4848

4949
private String requestTemplatePath = "http-request.ftl";
5050
private String responseTemplatePath = "http-response.ftl";
@@ -130,8 +130,9 @@ public Response filter(final FilterableRequestSpecification requestSpec,
130130
.orElse(response.getStatusLine());
131131

132132
final String responseAsString = response.getBody().asString();
133-
final String body = responseAsString.length() > maxAllowedPrettifyLength ?
134-
responseAsString : prettifier.getPrettifiedBodyIfPossible(response, response.getBody());
133+
final String body = responseAsString.length() > maxAllowedPrettifyLength
134+
? responseAsString
135+
: prettifier.getPrettifiedBodyIfPossible(response, response.getBody());
135136

136137
final HttpResponseAttachment responseAttachment = HttpResponseAttachment.Builder.create(attachmentName)
137138
.setResponseCode(response.getStatusCode())

0 commit comments

Comments
 (0)