aboutsummaryrefslogtreecommitdiffstats
path: root/data/lib
diff options
context:
space:
mode:
Diffstat (limited to 'data/lib')
-rw-r--r--data/lib/collectingMetadata.js5
-rw-r--r--data/lib/util.js2
2 files changed, 4 insertions, 3 deletions
diff --git a/data/lib/collectingMetadata.js b/data/lib/collectingMetadata.js
index a38f0fc..6fe57a4 100644
--- a/data/lib/collectingMetadata.js
+++ b/data/lib/collectingMetadata.js
@@ -132,8 +132,9 @@ AttachList.prototype.getBadAttachments = function getBadAttachments() {
*/
AttachList.prototype.addCheckXorgLogLink = function addCheckXorgLogLink() {
if (config.XorgLogAnalysis) {
- this.attachments.forEach(function (att) {
- att.checkXorgLink();
+ this.getXorgList().
+ forEach(function (att) {
+ att.checkXorgLink();
});
}
}
diff --git a/data/lib/util.js b/data/lib/util.js
index f30ddd5..b128d48 100644
--- a/data/lib/util.js
+++ b/data/lib/util.js
@@ -247,7 +247,7 @@ function ISODateString(d) {
* @return position of the string in the list, or -1 if none found.
*/
function isInList(mbr, list) {
- if (!list) {
+ if (!Array.isArray(list)) {
return false;
}
return (list.indexOf(mbr) !== -1);