chore: re-format code

This commit is contained in:
Julien Fontanet
2018-10-26 16:39:05 +02:00
parent c7a1d55f6f
commit 2d4d653c55
3 changed files with 20 additions and 4 deletions

View File

@@ -45,7 +45,7 @@ for (const name in LEVELS) {
} else {
return this.warn('incorrect value passed to logger', {
level,
value: message
value: message,
})
}
}

View File

@@ -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) {

View File

@@ -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',