mirror of
https://github.com/balena-io/etcher.git
synced 2025-07-24 11:46:31 +00:00
Remove no longer needed ts-ignore comments, fix typos
Change-type: patch
This commit is contained in:
parent
d63df5a156
commit
82a3c37c16
@ -173,7 +173,7 @@ export function DriveSelectorModal({ close }: { close: () => void }) {
|
||||
<li
|
||||
key={`item-${drive.displayName}`}
|
||||
className="list-group-item"
|
||||
// @ts-ignore (FIXME: not a valid <li> attribute but used by css rule)
|
||||
// @ts-ignore (FIXME: not a valid <li> attribute but used by css rule)
|
||||
disabled={!isDriveValid(drive, selectionState.getImage())}
|
||||
onDoubleClick={() => selectDriveAndClose(drive)}
|
||||
onClick={() => toggleDrive(drive)}
|
||||
@ -243,7 +243,7 @@ export function DriveSelectorModal({ close }: { close: () => void }) {
|
||||
{isDriveValid(drive, selectionState.getImage()) && (
|
||||
<span
|
||||
className="list-group-item-section tick tick--success"
|
||||
// @ts-ignore (FIXME: not a valid <span> attribute but used by css rule)
|
||||
// @ts-ignore (FIXME: not a valid <span> attribute but used by css rule)
|
||||
disabled={!selectionState.isDriveSelected(drive.device)}
|
||||
></span>
|
||||
)}
|
||||
|
@ -137,7 +137,6 @@ export const SettingsModal: any = styled(
|
||||
setting,
|
||||
value,
|
||||
dangerous,
|
||||
// @ts-ignore
|
||||
applicationSessionUuid: store.getState().toJS().applicationSessionUuid,
|
||||
});
|
||||
|
||||
|
@ -185,7 +185,6 @@ export function performWrite(
|
||||
cancelled = true;
|
||||
});
|
||||
|
||||
// @ts-ignore
|
||||
ipc.server.on('state', onProgress);
|
||||
|
||||
ipc.server.on('ready', (_data, socket) => {
|
||||
|
@ -46,7 +46,6 @@ function getDrivesTitle() {
|
||||
const drives = selectionState.getSelectedDrives();
|
||||
|
||||
if (drives.length === 1) {
|
||||
// @ts-ignore
|
||||
return drives[0].description || 'Untitled Device';
|
||||
}
|
||||
|
||||
|
@ -97,7 +97,6 @@ async function writeAndValidate(
|
||||
): Promise<WriteResult> {
|
||||
let innerSource: sdk.sourceDestination.SourceDestination = await source.getInnerSource();
|
||||
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({
|
||||
source: innerSource,
|
||||
shouldTrimPartitions: trim,
|
||||
@ -109,7 +108,6 @@ async function writeAndValidate(
|
||||
bytesWritten,
|
||||
} = await sdk.multiWrite.pipeSourceToDestinations(
|
||||
innerSource,
|
||||
// @ts-ignore FIXME: ts thinks that BlockWriteStream can't be assigned to WritableStream (which it implements)
|
||||
destinations,
|
||||
onFail,
|
||||
onProgress,
|
||||
@ -231,7 +229,6 @@ ipc.connectTo(IPC_SERVER_ID, () => {
|
||||
});
|
||||
try {
|
||||
const results = await writeAndValidate(
|
||||
// @ts-ignore FIXME: ts thinks that SparseWriteStream can't be assigned to SparseWritable (which it implements)
|
||||
source,
|
||||
dests,
|
||||
options.validateWriteOnSuccess,
|
||||
|
Loading…
x
Reference in New Issue
Block a user