Skip to content

Commit

Permalink
CodeQL fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
lutzroeder committed Oct 27, 2022
1 parent 5fd9993 commit b7209dc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions test/models.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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) {
Expand Down

0 comments on commit b7209dc

Please sign in to comment.