Commit f6c5796b authored by flothoni's avatar flothoni

tools.js; minor correction for jshint

link to #2632
parent 0a44fa39
Pipeline #59794 failed with stages
in 15 seconds
......@@ -661,15 +661,15 @@ function sort_list_locus(key_list){
var generic_locus_1 = [ "TRA", "TRB", "TRB+", "TRG", "TRD", "TRA+D", "TRD+", "IGH", "IGH+", "IGK", "IGK+", "IGL"]
var generic_locus_2 = [ "TRA", "TRB", "TRB+", "TRG", "TRD", "TRA+D", "TRD+", "IGH", "IGH+", "IGK", "IGK+", "IGL"]
var index;
for (var i = 0; i < generic_locus_1.length; i++) {
// If not present, deletion of result list
if (key_list.indexOf(generic_locus_1[i]) == -1) {
var index = generic_locus_2.indexOf(generic_locus_1[i]);
index = generic_locus_2.indexOf(generic_locus_1[i]);
generic_locus_2.splice(index, 1);
} else {
// else deletion of list given
var index = key_list.indexOf(generic_locus_1[i]);
index = key_list.indexOf(generic_locus_1[i]);
key_list.splice(index, 1);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment