We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b7e94c commit c30cd2eCopy full SHA for c30cd2e
scanners/ssh-audit/parser/parser.js
@@ -239,9 +239,11 @@ export async function parse(fileContent) {
239
const location = "ssh://" + destination[0];
240
let ipAddress = null;
241
let hostname = null;
242
- isIPaddress(destination[0])
243
- ? (ipAddress = destination[0])
244
- : (hostname = destination[0]);
+ if (isIPaddress(destination[0])) {
+ ipAddress = destination[0]
+ } else {
245
+ hostname = destination[0]
246
+ }
247
248
const recommendationsArray = Object.entries(report.recommendations);
249
const policyViolationFindings = recommendationsArray.flatMap(
0 commit comments