Completed
Push — master ( 03cb87...68903a )
by Michael
28s queued 12s
created

src/utils/getWeight.js   A

Complexity

Total Complexity 2
Complexity/F 2

Size

Lines of Code 3
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 3
rs 10
c 0
b 0
f 0
wmc 2
mnd 1
bc 1
fnc 1
bpm 1
cpm 2
noi 0
1
export default function getWeight(weight) {
2
  return (weight || weight === 0) ? parseFloat(weight) : 1
3
}
4