Bug 1607639 - Part 3: Remove unnecessary falsy checks for _source in source actor. r=jlast

Differential Revision: https://phabricator.services.mozilla.com/D72107
This commit is contained in:
Logan Smyth 2020-04-27 02:16:00 +00:00
Родитель 1c5e2e3489
Коммит 6af9e5261a
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -190,11 +190,11 @@ const SourceActor = ActorClassWithSpec(sourceSpec, {
extensionName: this.extensionName,
url: this.url,
isBlackBoxed: this.threadActor.sources.isBlackBoxed(this.url),
sourceMapURL: source ? source.sourceMapURL : null,
sourceMapURL: source.sourceMapURL,
introductionUrl: introductionUrl
? introductionUrl.split(" -> ").pop()
: null,
introductionType: source ? source.introductionType : null,
introductionType: source.introductionType,
};
},
@ -233,7 +233,6 @@ const SourceActor = ActorClassWithSpec(sourceSpec, {
// (javascript.options.discardSystemSource == true). Re-fetch non-JS
// sources to get the contentType from the headers.
if (
this._source &&
this._source.text !== "[no source]" &&
this._contentType &&
(this._contentType.includes("javascript") ||