Skip to content

Commit 5d89669

Browse files
committed
Fix spelling for some of these items
* ; otherwise, * a * abandoned * accessor * across * additional * address * algorithm * and * apply * assign * availability * beginning * broken * case-insensitive * chains * chosen * click * compactness * compatibility * completely * configuration * connection * corresponding * criteria * dependent * dictionary * differentiate * discrepancy * duplication * each other * efficiently * empty * encrypter * enough * environment * equal * exactly * existing * expansion * explicitly * fall back * falsish * file * function * github * id * immutability * implicitly * in * increase * initial * instantiated * its * length * listener * little * localhost * locator * logged * longer * mechanisms * metadata is also immutable * metadata * method * modify * negotiation * nonexistent * occurred * ofthe * one * opening * optional * output * overlapping * parameters * params * positioning * prepositioning * really * reasonable * reinstantiated * repair * respect * result * retransferred * save * scanning * self-signed * separately * set up * set * similar * slash * snapshot * something * succeed * succeeded * successful * survived * swapping * there * transferred * triggering * ubuntu * unreasonably * unsupported * unwanted * usage * want * will * without * workaround * written Signed-off-by: Josh Soref <[email protected]>
1 parent a222c86 commit 5d89669

File tree

102 files changed

+160
-160
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+160
-160
lines changed

@vates/diff/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* @param {Array|Buffer|string} data1 - The first data array or buffer to compare.
88
* @param {T} data2 - The second data array or buffer to compare.
99
* @param {(index: number, diff: T) => void} [cb] - The callback function to invoke for each difference. If not provided, an array of differences will be returned.
10-
* @returns {Array<number|T>|undefined} - An array of differences if no callback is provided, otherwise undefined.
10+
* @returns {Array<number|T>|undefined} - An array of differences if no callback is provided; otherwise, undefined.
1111
*/
1212
module.exports = function diff(data1, data2, cb) {
1313
let result

@vates/nbd-client/constants.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export const INIT_PASSWD = Buffer.from('NBDMAGIC') // "NBDMAGIC" ensure we're connected to a nbd server
22
export const OPTS_MAGIC = Buffer.from('IHAVEOPT') // "IHAVEOPT" start an option block
3-
export const NBD_OPT_REPLY_MAGIC = 1100100111001001n // magic received during negociation
3+
export const NBD_OPT_REPLY_MAGIC = 1100100111001001n // magic received during negotiation
44
export const NBD_OPT_EXPORT_NAME = 1
55
export const NBD_OPT_ABORT = 2
66
export const NBD_OPT_LIST = 3

@vates/nbd-client/index.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,9 @@ export default class NbdClient {
4343
// AFAIK, there is no guaranty the server answers in the same order as the queries
4444
// so we handle a backlog of command waiting for response and handle concurrency manually
4545

46-
#waitingForResponse // there is already a listenner waiting for a response
46+
#waitingForResponse // there is already a listener waiting for a response
4747
#nextCommandQueryId = BigInt(0)
48-
#commandQueryBacklog // map of command waiting for an response queryId => { size/*in byte*/, resolve, reject}
48+
#commandQueryBacklog // map of command waiting for a response queryId => { size/*in byte*/, resolve, reject}
4949
#connected = false
5050

5151
#reconnectingPromise
@@ -196,7 +196,7 @@ export default class NbdClient {
196196
}
197197

198198
// send export name we want to access.
199-
// it's implictly closing the negociation phase.
199+
// it's implicitly closing the negotiation phase.
200200
await this.#write(OPTS_MAGIC)
201201
await this.#writeInt32(NBD_OPT_EXPORT_NAME)
202202
const exportNameBuffer = Buffer.from(this.#exportName)

@vates/node-vsphere-soap/lib/client.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
This file creates the Client class
88
99
- when the class is instantiated, a connection will be made to the ESXi/vCenter server to verify that the creds are good
10-
- upon a bad login, the connnection will be terminated
10+
- upon a bad login, the connection will be terminated
1111
1212
*/
1313

@vates/xml/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function main([inputPath = 0]) {
2020
try {
2121
data = JSON.parse(input)
2222
} catch (error) {
23-
// fallback to XML
23+
// fall back to XML
2424
log(parseXml(input))
2525
return
2626
}

@xen-orchestra/backups/ImportVmBackup.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,13 @@ export class ImportVmBackup {
168168
vdis[vdiRef].baseVdi = snapshotCandidate
169169
} catch (error) {
170170
// can be a broken VHD chain, a vhd chain with a key backup, ....
171-
// not an irrecuperable error, don't dispose parentVhd, and fallback to full restore
171+
// not an irrecuperable error, don't dispose parentVhd, and fall back to full restore
172172
warn(`can't use differential restore`, { error })
173173
descendant?.close()
174174
negativeDisk?.close()
175175
}
176176
}
177-
// didn't make a negative stream : fallback to classic stream
177+
// didn't make a negative stream : fall back to classic stream
178178
if (disk === undefined) {
179179
debug('use legacy restore')
180180
disk = parent

@xen-orchestra/backups/RemoteAdapter.mjs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export class RemoteAdapter {
204204
})
205205
}
206206

207-
// check if we will be allowed to merge a a vhd created in this adapter
207+
// check if we will be allowed to merge a vhd created in this adapter
208208
// with the vhd at path `path`
209209
async isMergeableParent(packedParentUid, path) {
210210
return await Disposable.use(VhdSynthetic.fromVhdChain(this.handler, path), vhd => {
@@ -774,7 +774,7 @@ export class RemoteAdapter {
774774
let json
775775
let isImmutable = false
776776
let remoteIsImmutable = false
777-
// if the remote is immutable, check if this metadatas are also immutables
777+
// if the remote is immutable, check if this metadata is also immutable
778778
try {
779779
// this file is not encrypted
780780
await this._handler._readFile(IMMUTABILTY_METADATA_FILENAME)
@@ -790,7 +790,7 @@ export class RemoteAdapter {
790790
json = await this.handler.readFile(path, { flag: 'r+' })
791791
// s3 handler don't respect flags
792792
} catch (err) {
793-
// retry without triggerring immutbaility check ,only on immutable remote
793+
// retry without triggering immutability check ,only on immutable remote
794794
if (err.code === 'EPERM' && remoteIsImmutable) {
795795
isImmutable = true
796796
json = await this._handler.readFile(path, { flag: 'r' })

@xen-orchestra/backups/RestoreMetadataBackup.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export class RestoreMetadataBackup {
2424
const dataFileName = resolve('/', backupId, metadata.data ?? 'data.json').slice(1)
2525
const data = await handler.readFile(dataFileName)
2626

27-
// if data is JSON, sent it as a plain string, otherwise, consider the data as binary and encode it
27+
// if data is JSON, sent it as a plain string; otherwise, consider the data as binary and encode it
2828
const isJson = dataFileName.endsWith('.json')
2929
return isJson ? data.toString() : { encoding: 'base64', data: data.toString('base64') }
3030
}

@xen-orchestra/backups/_cleanVm.integ.mjs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ test('it remove vhd with missing or multiple ancestors', async () => {
132132
const deletedOrphanVhd = loggued.match(/deleting orphan VHD/g) || []
133133
assert.equal(deletedOrphanVhd.length, 1) // only one vhd should have been deleted
134134

135-
// we don't test the filew on disk, since they will all be marker as unused and deleted without a metadata.json file
135+
// we don't test the file on disk, since they will all be marker as unused and deleted without a metadata.json file
136136
})
137137

138138
test('it remove backup meta data referencing a missing vhd in delta backup', async () => {
@@ -287,7 +287,7 @@ test('it finish unterminated merge ', async () => {
287287
})
288288

289289
// each of the vhd can be a file, a directory, an alias to a file or an alias to a directory
290-
// the message an resulting files should be identical to the output with vhd files which is tested independantly
290+
// the message and resulting files should be identical to the output with vhd files which is tested independently
291291
describe('tests multiple combination ', { concurrency: 1 }, () => {
292292
for (const useAlias of [true, false]) {
293293
for (const vhdMode of ['file', 'directory']) {
@@ -308,9 +308,9 @@ describe('tests multiple combination ', { concurrency: 1 }, () => {
308308
await VhdAbstract.createAlias(handler, 'broken.alias.vhd', brokenVhdDataPath)
309309
}
310310

311-
// a vhd non referenced in metada
311+
// a vhd non referenced in metadata
312312
await generateVhd(`${basePath}/nonreference.vhd`, { useAlias, mode: vhdMode })
313-
// an abandonded delta vhd without its parent
313+
// an abandoned delta vhd without its parent
314314
await generateVhd(`${basePath}/abandonned.vhd`, {
315315
useAlias,
316316
mode: vhdMode,
@@ -404,7 +404,7 @@ describe('tests multiple combination ', { concurrency: 1 }, () => {
404404
// size should be the size of children + grand children + clean after the merge
405405
assert.deepEqual(metadata.size, vhdMode === 'file' ? 6502400 : 6501888)
406406

407-
// broken vhd, non referenced, abandonned should be deleted ( alias and data)
407+
// broken vhd, non referenced, abandoned should be deleted ( alias and data)
408408
// ancestor and child should be merged
409409
// grand child and clean vhd should not have changed
410410
const survivors = await handler.list(basePath)
@@ -454,7 +454,7 @@ test('check Aliases should work alone', async () => {
454454
logWarn: () => {},
455455
})
456456

457-
// only ok have suvived
457+
// only ok have survived
458458
const alias = (await handler.list('vhds')).filter(f => f.endsWith('.vhd'))
459459
assert.equal(alias.length, 1)
460460

@xen-orchestra/backups/_cleanVm.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ export async function cleanVm(
512512
remove,
513513
mergeBlockConcurrency,
514514
})
515-
const metadataPath = vhdsToJSons[chain[chain.length - 1]] // all the chain should have the same metada file
515+
const metadataPath = vhdsToJSons[chain[chain.length - 1]] // all the chain should have the same metadata file
516516
metadataWithMergedVhd[metadataPath] = (metadataWithMergedVhd[metadataPath] ?? 0) + finalVhdSize
517517
})
518518
}

@xen-orchestra/backups/_getOldEntries.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const LTR_DEFINITIONS = {
2626

2727
copy.date(date.date() - firstDayOfWeek)
2828
// warning, the year in term of week may different from YYYY
29-
// since the computation of the first week of a year is timezone dependant
29+
// since the computation of the first week of a year is timezone dependent
3030
return copy.format('gggg-ww')
3131
}
3232
},
@@ -59,7 +59,7 @@ const LTR_DEFINITIONS = {
5959
* return the entries too old to be kept
6060
* if multiple entries are i the same time bucket : keep only the most recent one
6161
* if an entry is valid in any of the bucket OR the minRetentionCount : keep it
62-
* if a bucket is completly empty : it does not count as one, thus it may extend the retention
62+
* if a bucket is completely empty : it does not count as one, thus it may extend the retention
6363
* @returns Array<Backup>
6464
*/
6565
export function getOldEntries(minRetentionCount, entries, { longTermRetention = {}, timezone } = {}) {

@xen-orchestra/backups/_incrementalVm.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ export const importIncrementalVm = defer(async function importIncrementalVm(
231231
cancelableMap(cancelToken, Object.entries(newVdis), async (cancelToken, [id, vdi]) => {
232232
for (const disk of ensureArray(disks[id])) {
233233
if (disk === null) {
234-
// we restore a backup and reuse completly a local snapshot
234+
// we restore a backup and reuse completely a local snapshot
235235
continue
236236
}
237237
await xapi.setField('VDI', vdi.$ref, 'name_label', `[Importing] ${vdiRecords[id].name_label}`)

@xen-orchestra/backups/_isValidXva.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const isValidTar = async (handler, size, fd) => {
4444
return buf.every(_ => _ === 0)
4545
}
4646

47-
// TODO: find an heuristic for compressed files
47+
// TODO: find a heuristic for compressed files
4848
export async function isValidXva(path) {
4949
const handler = this._handler
5050

@xen-orchestra/backups/_otherConfig.mjs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ async function getDeltaChainLength(xapi, type, ref) {
4343
}
4444

4545
/**
46-
* set the delta chain lenght ( number of delta since last base backup) to a VM and its associated VDIs
46+
* set the delta chain length ( number of delta since last base backup) to a VM and its associated VDIs
4747
*
4848
* @param {Xapi} xapi
4949
* @param {String} vmRef
@@ -58,7 +58,7 @@ export async function setVmDeltaChainLength(xapi, vmRef, length) {
5858

5959
/**
6060
* Compute the delta chain length of a VM and its associated VDIs
61-
* if there is a discrependcy, use, the highest value
61+
* if there is a discrepancy, use, the highest value
6262
* @param {Xapi} xapi
6363
* @param {String} vmRef
6464
* @returns {Promise}
@@ -92,7 +92,7 @@ export function resetVmOtherConfig(xapi, vmRef) {
9292

9393
/**
9494
*
95-
* used to ensure compatibiliy with the previous snapshots that were having the config stored only into VM
95+
* used to ensure compatibility with the previous snapshots that were having the config stored only into VM
9696
*
9797
* @param {Xapi} xapi
9898
* @param {String} vmRef
@@ -152,7 +152,7 @@ export async function setVmOtherConfig(xapi, vmRef, { timestamp, jobId, schedule
152152
}
153153
/**
154154
*
155-
* mark the export of he VM and its VDIs as successfull
155+
* mark the export of he VM and its VDIs as successful
156156
*
157157
* @param {Xapi} xapi
158158
* @param {String} vmRef

@xen-orchestra/backups/_runners/_vmRunners/FullRemote.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export const FullRemote = class FullRemoteVmBackupRunner extends AbstractRemote
2424
writer =>
2525
writer.run({
2626
stream: forkStreamUnpipe(stream),
27-
// stream will be forked and transformed, it's not safe to attach additionnal properties to it
27+
// stream will be forked and transformed, it's not safe to attach additional properties to it
2828
streamLength: stream.length,
2929
maxStreamLength: stream.maxStreamLength, // on encrypted source
3030
timestamp: metadata.timestamp,

@xen-orchestra/backups/_runners/_vmRunners/FullXapi.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ export const FullXapi = class FullXapiVmBackupRunner extends AbstractXapi {
4545
for (const vdiRef of vdis) {
4646
const vdi = await this._xapi.getRecord('VDI', vdiRef)
4747

48-
// the size a of fully allocated vdi will be virtual_size exaclty, it's a gross over evaluation
49-
// of the real stream size in general, since a disk is never completly full
48+
// the size a of fully allocated vdi will be virtual_size exactly, it's a gross over evaluation
49+
// of the real stream size in general, since a disk is never completely full
5050
// vdi.physical_size seems to underevaluate a lot the real disk usage of a VDI, as of 2023-10-30
5151
maxStreamLength += vdi.virtual_size
5252
}

@xen-orchestra/backups/_runners/_vmRunners/IncrementalRemote.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class IncrementalRemoteVmBackupRunner extends AbstractRemote {
1616
return IncrementalRemoteWriter
1717
}
1818

19-
// we'll transfer the full list if at least one backup should be transfered
19+
// we'll transfer the full list if at least one backup should be transferred
2020
// to ensure we don't cut the delta chain
2121
_filterTransferList(transferList) {
2222
if (transferList.some(vmBackupMetadata => this._filterPredicate(vmBackupMetadata))) {

@xen-orchestra/backups/_runners/_vmRunners/_AbstractRemote.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ export const AbstractRemote = class AbstractRemoteVmBackupRunner extends Abstrac
9090
for (const timestamp of timestamps) {
9191
if (remoteMetadatas[timestamp] !== nbRemotes) {
9292
// this backup is not present in all the remote
93-
// should be retransfered if not found later
93+
// should be retransferred if not found later
9494
transferList.push(localMetada.get(timestamp))
9595
} else {
9696
// backup is present in local and remote : the chain has already been transferred

@xen-orchestra/backups/_runners/_vmRunners/_AbstractXapi.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ export const AbstractXapi = class AbstractXapiVmBackupRunner extends Abstract {
195195
}
196196
})
197197
await Promise.all(vmSnapshots.map(snapshot => populateVdisOtherConfig(xapi, snapshot.$ref)))
198-
// end of compatibiliy handling
198+
// end of compatibility handling
199199

200200
// handle snapshot by VDI
201201
this._jobSnapshotVdis = []
@@ -298,7 +298,7 @@ export const AbstractXapi = class AbstractXapiVmBackupRunner extends Abstract {
298298
// preferNbd is not a guarantee that the backup used NBD, depending on the network configuration,
299299
// in that case next runs will be full, but there is not an easy way to prevent that
300300
this._settings.preferNbd &&
301-
// only delete snapshost data if the config allows it
301+
// only delete snapshot data if the config allows it
302302
this._settings.cbtDestroySnapshotData
303303
) {
304304
Task.info('will delete snapshot data')

@xen-orchestra/backups/_runners/_writers/IncrementalRemoteWriter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ export class IncrementalRemoteWriter extends MixinRemoteWriter(AbstractIncrement
230230
const path = `${this._vmBackupDir}/${vhds[diskRef]}`
231231
await adapter.writeVhd(path, disk, {
232232
// no checksum for VHDs, because they will be invalidated by
233-
// merges and chainings
233+
// merges and chains
234234
checksum: false,
235235
validator: tmpPath => checkVhd(handler, tmpPath),
236236
writeBlockConcurrency: this._config.writeBlockConcurrency,

@xen-orchestra/backups/_runners/_writers/IncrementalXapiWriter.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class IncrementalXapiWriter extends MixinXapiWriter(AbstractIncrementalWr
2121
}
2222

2323
// @todo use an index if possible
24-
// @todo : this seems similare to decorateVmMetadata
24+
// @todo : this seems similar to decorateVmMetadata
2525
const replicatedVdis = sr.$VDIs
2626
.filter(vdi => {
2727
// REPLICATED_TO_SR_UUID is not used here since we are already filtering from sr.$VDIs

@xen-orchestra/disk-transform/src/FileAccessor.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ export type FileDescriptor = number
66
* a base interface is defined to be able to add other accessor ,
77
* for example in browser or from a vmware datastore
88
*
9-
* NOTE : file acessor on datastore should try to use a stream
10-
* and read/skip from this when possible, since openingn a new stream is costly
9+
* NOTE : file accessor on datastore should try to use a stream
10+
* and read/skip from this when possible, since opening a new stream is costly
1111
* and we are generally reading the vhd sequentially
1212
*/
1313
export interface FileAccessor {

@xen-orchestra/fs/src/abstract.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -210,16 +210,16 @@ export default class RemoteHandlerAbstract {
210210
validator,
211211
})
212212
if (checksum) {
213-
// using _outpuFile means the checksum will NOT be encrypted
213+
// using _outputFile means the checksum will NOT be encrypted
214214
// it is by design to allow checking of encrypted files without the key
215215
await this._outputFile(checksumFile(path), await checksumStream.checksum, { dirMode, flags: 'wx' })
216216
}
217217
}
218218

219219
// Free the resources possibly dedicated to put the remote at work, when it
220-
// is no more needed
220+
// is no longer needed
221221
//
222-
// FIXME: Some handlers are implemented based on system-wide mecanisms (such
222+
// FIXME: Some handlers are implemented based on system-wide mechanisms (such
223223
// as mount), forgetting them might breaking other processes using the same
224224
// remote.
225225
@synchronized()
@@ -331,7 +331,7 @@ export default class RemoteHandlerAbstract {
331331
await this._rmtree(normalizePath(dir))
332332
}
333333

334-
// Asks the handler to sync the state of the effective remote with its'
334+
// Asks the handler to sync the state of the effective remote with its
335335
// metadata
336336
//
337337
// This method MUST ALWAYS be called before using the handler.
@@ -386,15 +386,15 @@ export default class RemoteHandlerAbstract {
386386
const data = await this.__readFile(ENCRYPTION_METADATA_FILENAME)
387387
JSON.parse(data)
388388
} catch (error) {
389-
// can be enoent, bad algorithm, or broeken json ( bad key or algorithm)
389+
// can be enoent, bad algorithm, or broken json ( bad key or algorithm)
390390
if (encryptionAlgorithm !== 'none') {
391391
if (await this.#canWriteMetadata()) {
392392
// any other error , but on empty remote => update with remote settings
393393

394394
info('will update metadata of this remote')
395395
return this.#createMetadata()
396396
} else {
397-
// to add a new encrypted fs remote, the remote directory must be empty, otherwise metadata.json is not created
397+
// to add a new encrypted fs remote, the remote directory must be empty; otherwise, metadata.json is not created
398398
if (error.code === 'ENOENT' && error.path.includes('metadata.json')) {
399399
throw new Error('Remote directory must be empty.')
400400
}
@@ -644,7 +644,7 @@ export default class RemoteHandlerAbstract {
644644
if (error.code === 'EISDIR' || error.code === 'EPERM') {
645645
return this._rmtree(`${dir}/${file}`).catch(rmTreeError => {
646646
if (rmTreeError.code === 'ENOTDIR') {
647-
// this was realy a EPERM error, maybe with immutable backups
647+
// this was really a EPERM error, maybe with immutable backups
648648
throw error
649649
}
650650
throw rmTreeError

@xen-orchestra/fs/src/abstract.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class TestHandler extends AbstractHandler {
1616
constructor(impl) {
1717
super({ url: 'test://' }, { timeout: TIMEOUT })
1818
Object.defineProperty(this, 'isEncrypted', {
19-
get: () => false, // encryption is tested separatly
19+
get: () => false, // encryption is tested separately
2020
})
2121
Object.keys(impl).forEach(method => {
2222
this[`_${method}`] = impl[method]

@xen-orchestra/fs/src/checksum.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ export const createChecksumStream = (algorithm = 'md5') => {
4848
return stream
4949
}
5050

51-
// Check if the checksum of a readable stream is equals to an expected checksum.
51+
// Check if the checksum of a readable stream is equal to an expected checksum.
5252
// The given stream is wrapped in a stream which emits an error event
53-
// if the computed checksum is not equals to the expected checksum.
53+
// if the computed checksum is not equal to the expected checksum.
5454
export const validChecksumOfReadStream = (stream, expectedChecksum) => {
5555
const algorithmId = expectedChecksum.slice(1, expectedChecksum.indexOf('$', 1))
5656

0 commit comments

Comments
 (0)