Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: lib/downloader.js

Issue 29807560: Issue 6745 - Prefer strict equality operator (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created June 14, 2018, 4:11 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/content/elemHideEmulation.js ('k') | lib/elemHide.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/downloader.js
===================================================================
--- a/lib/downloader.js
+++ b/lib/downloader.js
@@ -309,17 +309,17 @@
request.addEventListener("load", event =>
{
if (onShutdown.done)
return;
this._downloading.delete(downloadable.url);
// Status will be 0 for non-HTTP requests
- if (request.status && request.status != 200)
+ if (request.status && request.status !== 200)
{
errorCallback("synchronize_connection_error");
return;
}
downloadable.downloadCount++;
this.onDownloadSuccess(
« no previous file with comments | « lib/content/elemHideEmulation.js ('k') | lib/elemHide.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld