From b7209dc9ab8e60f14ff883aaaf0cce50114d8dca Mon Sep 17 00:00:00 2001 From: Lutz Roeder Date: Wed, 26 Oct 2022 19:35:00 -0700 Subject: [PATCH] CodeQL fixes --- test/models.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/models.js b/test/models.js index ba24fc6528..4bb0829452 100755 --- a/test/models.js +++ b/test/models.js @@ -596,10 +596,9 @@ const loadModel = (target, item) => { } } } - model.version; - model.description; - model.author; - model.license; + if (model.version || model.description || model.author || model.license) { + // continue + } for (const graph of model.graphs) { for (const input of graph.inputs) { input.name.toString(); @@ -610,8 +609,9 @@ const loadModel = (target, item) => { if (argument.type) { argument.type.toString(); } - argument.quantization; - argument.initializer; + if (argument.quantization || argument.initializer) { + // continue + } } } for (const output of graph.outputs) {