fix(vhd-lib/VhdSynthetic): compression type computation

This commit is contained in:
Florent Beauchamp 2024-02-16 15:58:59 +00:00 committed by Julien Fontanet
parent 0e45c52bbc
commit 56b427c09c

View File

@ -46,9 +46,9 @@ const VhdSynthetic = class VhdSynthetic extends VhdAbstract {
} }
get compressionType() { get compressionType() {
const compressionType = this.vhds[0].compressionType const compressionType = this.#vhds[0].compressionType
for (let i = 0; i < this.vhds.length; i++) { for (let i = 0; i < this.#vhds.length; i++) {
if (compressionType !== this.vhds[i].compressionType) { if (compressionType !== this.#vhds[i].compressionType) {
return 'MIXED' return 'MIXED'
} }
} }