Skip to content

Commit 488f5e8

Browse files
author
bnasslahsen
committed
code cleanup
1 parent ec591f9 commit 488f5e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

springdoc-openapi-common/src/main/java/org/springdoc/core/SwaggerUiConfigProperties.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,6 @@ public void setCsrf(Csrf csrf) {
213213
*/
214214
public boolean isCsrfEnabled(){
215215
return csrf.isEnabled();
216-
};
216+
}
217217

218218
}

springdoc-openapi-common/src/main/java/org/springdoc/ui/AbstractSwaggerIndexTransformer.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ protected String defaultTransformations(InputStream inputStream) throws IOExcept
143143
return html;
144144
}
145145

146-
protected String addCSRF(String html) throws JsonProcessingException {
146+
protected String addCSRF(String html) {
147147
StringBuilder stringBuilder = new StringBuilder();
148148
stringBuilder.append("requestInterceptor: function() {\n");
149149
stringBuilder.append("const value = `; ${document.cookie}`;\n");

0 commit comments

Comments
 (0)