Skip to content

Commit 603099d

Browse files
committed
don't need this check
1 parent cb23cdf commit 603099d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

src/tools/raid-calculator/raid-calculator.vue

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,10 @@ const raidRequirements = computed(() => raidCalculations[raidType.value].require
1111
const inputsValid = computed(() => validateSetup());
1212
1313
const calculatedCapacity = computed(() => {
14-
// make sure values exist
15-
if (diskTotal.value === undefined || diskSize.value === undefined) {
16-
return '';
17-
}
18-
1914
return formatBytes(raidCalculations[raidType.value].capacity(diskTotal.value, diskSize.value, diskUnit.value), 2, UNIT_BASE.BASE_10);
2015
});
2116
2217
const calculatedFaultTolerance = computed(() => {
23-
// make sure values exist
24-
if (diskTotal.value === undefined || diskSize.value === undefined) {
25-
return '';
26-
}
27-
2818
return raidCalculations[raidType.value].fault(diskTotal.value, diskSize.value, diskUnit.value);
2919
});
3020

0 commit comments

Comments
 (0)