mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-27 21:26:38 +00:00
Remove no longer needed ts-ignore comments, fix typos
Change-type: patch
This commit is contained in:
parent
d63df5a156
commit
82a3c37c16
@ -137,7 +137,6 @@ export const SettingsModal: any = styled(
|
|||||||
setting,
|
setting,
|
||||||
value,
|
value,
|
||||||
dangerous,
|
dangerous,
|
||||||
// @ts-ignore
|
|
||||||
applicationSessionUuid: store.getState().toJS().applicationSessionUuid,
|
applicationSessionUuid: store.getState().toJS().applicationSessionUuid,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -185,7 +185,6 @@ export function performWrite(
|
|||||||
cancelled = true;
|
cancelled = true;
|
||||||
});
|
});
|
||||||
|
|
||||||
// @ts-ignore
|
|
||||||
ipc.server.on('state', onProgress);
|
ipc.server.on('state', onProgress);
|
||||||
|
|
||||||
ipc.server.on('ready', (_data, socket) => {
|
ipc.server.on('ready', (_data, socket) => {
|
||||||
|
@ -46,7 +46,6 @@ function getDrivesTitle() {
|
|||||||
const drives = selectionState.getSelectedDrives();
|
const drives = selectionState.getSelectedDrives();
|
||||||
|
|
||||||
if (drives.length === 1) {
|
if (drives.length === 1) {
|
||||||
// @ts-ignore
|
|
||||||
return drives[0].description || 'Untitled Device';
|
return drives[0].description || 'Untitled Device';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -97,7 +97,6 @@ async function writeAndValidate(
|
|||||||
): Promise<WriteResult> {
|
): Promise<WriteResult> {
|
||||||
let innerSource: sdk.sourceDestination.SourceDestination = await source.getInnerSource();
|
let innerSource: sdk.sourceDestination.SourceDestination = await source.getInnerSource();
|
||||||
if (trim && (await innerSource.canRead())) {
|
if (trim && (await innerSource.canRead())) {
|
||||||
// @ts-ignore FIXME: ts thinks that SparseReadStream can't be assigned to SparseReadable (which it implements)
|
|
||||||
innerSource = new sdk.sourceDestination.ConfiguredSource({
|
innerSource = new sdk.sourceDestination.ConfiguredSource({
|
||||||
source: innerSource,
|
source: innerSource,
|
||||||
shouldTrimPartitions: trim,
|
shouldTrimPartitions: trim,
|
||||||
@ -109,7 +108,6 @@ async function writeAndValidate(
|
|||||||
bytesWritten,
|
bytesWritten,
|
||||||
} = await sdk.multiWrite.pipeSourceToDestinations(
|
} = await sdk.multiWrite.pipeSourceToDestinations(
|
||||||
innerSource,
|
innerSource,
|
||||||
// @ts-ignore FIXME: ts thinks that BlockWriteStream can't be assigned to WritableStream (which it implements)
|
|
||||||
destinations,
|
destinations,
|
||||||
onFail,
|
onFail,
|
||||||
onProgress,
|
onProgress,
|
||||||
@ -231,7 +229,6 @@ ipc.connectTo(IPC_SERVER_ID, () => {
|
|||||||
});
|
});
|
||||||
try {
|
try {
|
||||||
const results = await writeAndValidate(
|
const results = await writeAndValidate(
|
||||||
// @ts-ignore FIXME: ts thinks that SparseWriteStream can't be assigned to SparseWritable (which it implements)
|
|
||||||
source,
|
source,
|
||||||
dests,
|
dests,
|
||||||
options.validateWriteOnSuccess,
|
options.validateWriteOnSuccess,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user