Skip to content

Commit

Permalink
chore: Fix typo in AtomDownloadManagerDelegate::OnDownloadSaveDialogDone
Browse files Browse the repository at this point in the history
I believe the existing code was fine, but better be safe than sorry.
This typo was introduced in electron#16612.
  • Loading branch information
poiru authored and electron-bot committed Jan 31, 2019
1 parent 4d7ddcd commit a9fd794
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions atom/browser/atom_download_manager_delegate.cc
Expand Up @@ -127,7 +127,7 @@ void AtomDownloadManagerDelegate::OnDownloadPathGenerated(
callback.Run(path, download::DownloadItem::TARGET_DISPOSITION_PROMPT,
download::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS, path,
download::DOWNLOAD_INTERRUPT_REASON_NONE);
};
}
}

#if defined(MAS_BUILD)
Expand Down Expand Up @@ -174,7 +174,8 @@ void AtomDownloadManagerDelegate::OnDownloadSaveDialogDone(
const auto interrupt_reason =
download_path.empty() ? download::DOWNLOAD_INTERRUPT_REASON_USER_CANCELED
: download::DOWNLOAD_INTERRUPT_REASON_NONE;
download_callback.Run(path, download::DownloadItem::TARGET_DISPOSITION_PROMPT,
download_callback.Run(download_path,
download::DownloadItem::TARGET_DISPOSITION_PROMPT,
download::DOWNLOAD_DANGER_TYPE_NOT_DANGEROUS,
download_path, interrupt_reason);
}
Expand Down

0 comments on commit a9fd794

Please sign in to comment.