File tree 1 file changed +2
-5
lines changed
plugin/src/main/java/io/snyk/eclipse/plugin/html
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ public class BaseHtmlProvider {
23
23
private final Random random = new Random ();
24
24
private final Map <String , String > colorCache = new HashMap <>();
25
25
private String nonce = "" ;
26
- private byte ASCII_RANGE = 0x7F ;
27
26
public String getCss () {
28
27
return "" ;
29
28
}
@@ -208,10 +207,8 @@ public ITheme getCurrentTheme() {
208
207
return currentTheme ;
209
208
}
210
209
public String getErrorHtml (String errorMessage , String path ) {
211
- if (errorMessage == null ) errorMessage = "Unknown error" ;
212
- if (path == null ) path = "Unknown path" ;
213
- String escapedErrorMessage = StringEscapeUtils .escapeHtml3 ((errorMessage ));
214
- String escapedPath = StringEscapeUtils .escapeHtml3 (path );
210
+ String escapedErrorMessage = errorMessage == null ? "Unknown error" : StringEscapeUtils .escapeHtml3 ((errorMessage ));
211
+ String escapedPath = path == null ? "Unknown path" : StringEscapeUtils .escapeHtml3 (path );
215
212
var html = String .format ("""
216
213
<!DOCTYPE html>
217
214
<html lang="en">
You can’t perform that action at this time.
0 commit comments