mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-21 23:36:16 -04:00
Fix linting errors
This commit is contained in:
parent
cdaefe9f6e
commit
dcfe23aa4f
1 changed files with 2 additions and 2 deletions
|
@ -108,7 +108,7 @@ class ParseIPv4Header extends Operation {
|
|||
|
||||
const data = input.slice(ihl * 4);
|
||||
|
||||
if (outputFormat == "Table") {
|
||||
if (outputFormat === "Table") {
|
||||
output = `<table class='table table-hover table-sm table-bordered table-nonfluid'><tr><th>Field</th><th>Value</th></tr>
|
||||
<tr><td>Version</td><td>${version}</td></tr>
|
||||
<tr><td>Internet Header Length (IHL)</td><td>${ihl} (${ihl * 4} bytes)</td></tr>
|
||||
|
@ -137,7 +137,7 @@ class ParseIPv4Header extends Operation {
|
|||
return output + "</table>";
|
||||
} else if (outputFormat === "Data (hex)") {
|
||||
return toHex(data);
|
||||
} else if (outputFormat == "Data (raw)") {
|
||||
} else if (outputFormat === "Data (raw)") {
|
||||
return Utils.byteArrayToChars(data);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue