mirror of
https://github.com/gchq/CyberChef
synced 2026-01-02 08:33:18 +00:00
Introduced use of conditional chaining operator
This commit is contained in:
@@ -60,7 +60,7 @@ class ScanForEmbeddedFiles extends Operation {
|
||||
Extension: ${type.fileDetails.extension}
|
||||
MIME type: ${type.fileDetails.mime}\n`;
|
||||
|
||||
if (type.fileDetails.description && type.fileDetails.description.length) {
|
||||
if (type?.fileDetails?.description?.length) {
|
||||
output += ` Description: ${type.fileDetails.description}\n`;
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user