Update onedrive.d

* Remove try block - incompatible with auto designation needed to open file ...
This commit is contained in:
abraunegg 2020-11-12 21:51:07 +11:00
parent aa47f1119f
commit 68cc51ab4d

View file

@ -803,14 +803,7 @@ final class OneDriveApi
{
// Threshold for displaying download bar
long thresholdFileSize = 4 * 2^^20; // 4 MiB
try {
// open file as write in binary mode
auto file = File(filename, "wb");
} catch (FileException e) {
// display the error message
displayFileSystemErrorMessage(e.msg);
}
auto file = File(filename, "wb");
// function scopes
scope(exit) {