chore: re-format code
This commit is contained in:
@@ -45,7 +45,7 @@ for (const name in LEVELS) {
|
||||
} else {
|
||||
return this.warn('incorrect value passed to logger', {
|
||||
level,
|
||||
value: message
|
||||
value: message,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,7 +39,12 @@ function createBAT (
|
||||
return currentVhdPositionSector
|
||||
}
|
||||
|
||||
export default async function createReadableStream (diskSize, incomingBlockSize, blockAddressList, blockIterator) {
|
||||
export default async function createReadableStream (
|
||||
diskSize,
|
||||
incomingBlockSize,
|
||||
blockAddressList,
|
||||
blockIterator
|
||||
) {
|
||||
const ratio = VHD_BLOCK_SIZE_BYTES / incomingBlockSize
|
||||
if (ratio % 1 !== 0) {
|
||||
throw new Error(
|
||||
@@ -75,7 +80,13 @@ export default async function createReadableStream (diskSize, incomingBlockSize,
|
||||
const bitmapSize =
|
||||
Math.ceil(VHD_BLOCK_SIZE_SECTORS / 8 / SECTOR_SIZE) * SECTOR_SIZE
|
||||
const bat = Buffer.alloc(tablePhysicalSizeBytes, 0xff)
|
||||
const endOfData = createBAT(firstBlockPosition, blockAddressList, ratio, bat, bitmapSize)
|
||||
const endOfData = createBAT(
|
||||
firstBlockPosition,
|
||||
blockAddressList,
|
||||
ratio,
|
||||
bat,
|
||||
bitmapSize
|
||||
)
|
||||
const fileSize = endOfData * SECTOR_SIZE + FOOTER_SIZE
|
||||
let position = 0
|
||||
function * yieldAndTrack (buffer, expectedPosition) {
|
||||
|
||||
@@ -321,7 +321,12 @@ export default class Menu extends Component {
|
||||
],
|
||||
},
|
||||
isAdmin && { to: '/about', icon: 'menu-about', label: 'aboutPage' },
|
||||
!noOperatablePools && { to: '/tasks', icon: 'task', label: 'taskMenu', pill: nTasks },
|
||||
!noOperatablePools && {
|
||||
to: '/tasks',
|
||||
icon: 'task',
|
||||
label: 'taskMenu',
|
||||
pill: nTasks,
|
||||
},
|
||||
isAdmin && { to: '/xosan', icon: 'menu-xosan', label: 'xosan' },
|
||||
!(noOperatablePools && noResourceSets) && {
|
||||
to: '/vms/new',
|
||||
|
||||
Reference in New Issue
Block a user