Commit 9debc3fb authored by Thonier Florian's avatar Thonier Florian Committed by Mikaël Salson

model.js; minor fix for quality jshint

Link to #3943
parent 532f8f0d
...@@ -699,11 +699,11 @@ changeAlleleNotation: function(alleleNotation) { ...@@ -699,11 +699,11 @@ changeAlleleNotation: function(alleleNotation) {
* if raw is defined, do not normalize * if raw is defined, do not normalize
*/ */
normalize_reads: function(clone, time, raw) { normalize_reads: function(clone, time, raw) {
if (this.normalization_mode == this.NORM_EXTERNAL if (this.normalization_mode == this.NORM_EXTERNAL &&
&& clone.normalized_reads != undefined clone.normalized_reads != undefined &&
&& clone.normalized_reads[time] != null clone.normalized_reads[time] != null &&
&& raw == undefined) { raw == undefined) {
return clone.normalized_reads[time] ; return clone.normalized_reads[time] ;
} else { } else {
return clone.reads[time] ; return clone.reads[time] ;
} }
......
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