Skip to content

Commit

Permalink
refactor: remove unnecessary as any
Browse files Browse the repository at this point in the history
  • Loading branch information
nwtgck committed Aug 23, 2022
1 parent 2d2d00f commit 0ec8580
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/DataUploader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export default class DataUploader extends Vue {
method: 'POST',
body: encryptedStream,
duplex: 'half',
} as any);
} as RequestInit);
} catch {
this.errorMessageDelegate = () => this.strings['data_uploader_xhr_upload_error'];
}
Expand Down
2 changes: 1 addition & 1 deletion src/components/PipingUI.vue
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ export default class PipingUI extends Vue {
// Disable "Powered by PQINA" link
filePond.setOptions({
credits: false,
} as any);
});
// Update random strings
this.updateRandomStrs();
Expand Down
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ export async function supportsFetchUploadStreaming(pipingServerUrl: string): Pro
method: 'POST',
body: stream,
duplex: 'half',
} as any)
} as RequestInit)
// Without this, Safari causes an error "Unhandled Promise Rejection: NotSupportedError: ReadableStream uploading is not supported"
.catch(() => "fetch_error");
const getResPromise = fetch(url);
Expand Down

0 comments on commit 0ec8580

Please sign in to comment.