We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 072f028 commit e5c860aCopy full SHA for e5c860a
src/plots/get_data.js
@@ -55,15 +55,12 @@ exports.getModuleCalcData = function(calcdata, arg1) {
55
var remainingCalcData = [];
56
57
var plotMethod;
58
- if(arg1) {
59
- var typeOfArg1 = typeof arg1;
60
- if(typeOfArg1 === 'string') {
61
- plotMethod = Registry.getModule(arg1).plot;
62
- } else if(typeOfArg1 === 'function') {
63
- plotMethod = arg1;
64
- } else {
65
- plotMethod = arg1.plot;
66
- }
+ if(typeof arg1 === 'string') {
+ plotMethod = Registry.getModule(arg1).plot;
+ } else if(typeof arg1 === 'function') {
+ plotMethod = arg1;
+ } else {
+ plotMethod = arg1.plot;
67
}
68
if(!plotMethod) {
69
return [moduleCalcData, calcdata];
0 commit comments