Bug 1577835 - Fix eslint "no-useless-concat" errors in mailnews/. r=mkmelin
This commit is contained in:
Родитель
8575f6cbbe
Коммит
3819bf478e
|
@ -1834,7 +1834,7 @@ var gAccountTree = {
|
||||||
if (server) {
|
if (server) {
|
||||||
treecell.setAttribute(
|
treecell.setAttribute(
|
||||||
"properties",
|
"properties",
|
||||||
"folderNameCol isServer-true" + " serverType-" + server.type
|
"folderNameCol isServer-true serverType-" + server.type
|
||||||
);
|
);
|
||||||
// For IM accounts, we can try to fetch a protocol specific icon.
|
// For IM accounts, we can try to fetch a protocol specific icon.
|
||||||
if (server.type == "im") {
|
if (server.type == "im") {
|
||||||
|
|
|
@ -483,9 +483,7 @@ function ensure_view_ordering(
|
||||||
if (inGroup) {
|
if (inGroup) {
|
||||||
let groupValue = groupValueGetter(msgHdr);
|
let groupValue = groupValueGetter(msgHdr);
|
||||||
if (groupValue in previouslySeenGroupValues) {
|
if (groupValue in previouslySeenGroupValues) {
|
||||||
do_throw(
|
do_throw(`Group value ${groupValue} observed in more than one group!`);
|
||||||
"Group value " + groupValue + " observed in more than one " + "group!"
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
if (curGroupValue == null) {
|
if (curGroupValue == null) {
|
||||||
curGroupValue = groupValue;
|
curGroupValue = groupValue;
|
||||||
|
|
|
@ -211,7 +211,7 @@ function installNewRoot(server, dir, newStoreTypeID) {
|
||||||
// exists in "parentPath". If yes, remove it.
|
// exists in "parentPath". If yes, remove it.
|
||||||
let lastSlash = accountRootFolder.path.lastIndexOf("/");
|
let lastSlash = accountRootFolder.path.lastIndexOf("/");
|
||||||
let parentPath = accountRootFolder.parent.path;
|
let parentPath = accountRootFolder.parent.path;
|
||||||
log.info("Path to parent folder of account root" + " folder: " + parentPath);
|
log.info("Path to parent folder of account root folder: " + parentPath);
|
||||||
|
|
||||||
let parent = new FileUtils.File(parentPath);
|
let parent = new FileUtils.File(parentPath);
|
||||||
log.info("Path to parent folder of account root folder: " + parent.path);
|
log.info("Path to parent folder of account root folder: " + parent.path);
|
||||||
|
|
|
@ -630,7 +630,7 @@ async function testSentMessage() {
|
||||||
{
|
{
|
||||||
"Content-Type": "application/octet-stream",
|
"Content-Type": "application/octet-stream",
|
||||||
"X-Mozilla-Cloud-Part":
|
"X-Mozilla-Cloud-Part":
|
||||||
"cloudFile; url=http://localhost.invalid/; " + "name=attachment.html",
|
"cloudFile; url=http://localhost.invalid/; name=attachment.html",
|
||||||
},
|
},
|
||||||
"2"
|
"2"
|
||||||
);
|
);
|
||||||
|
|
|
@ -1318,7 +1318,7 @@ var GlodaDatastore = {
|
||||||
this.asyncConnection.asyncClose();
|
this.asyncConnection.asyncClose();
|
||||||
} catch (ex) {
|
} catch (ex) {
|
||||||
this._log.debug(
|
this._log.debug(
|
||||||
"Potentially expected exception during connection " + "closure: " + ex
|
"Potentially expected exception during connection closure: " + ex
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -621,7 +621,7 @@ var _indexMessageState = {
|
||||||
this.expectedFailedToRecoverCount != this._workerFailedToRecoverCount
|
this.expectedFailedToRecoverCount != this._workerFailedToRecoverCount
|
||||||
) {
|
) {
|
||||||
mark_failure([
|
mark_failure([
|
||||||
"Expected worker-failed-to-recover count did not match " + "actual!",
|
"Expected worker-failed-to-recover count did not match actual!",
|
||||||
"Expected",
|
"Expected",
|
||||||
this.expectedFailedToRecoverCount,
|
this.expectedFailedToRecoverCount,
|
||||||
"actual",
|
"actual",
|
||||||
|
|
|
@ -1661,7 +1661,7 @@ var FeedUtils = {
|
||||||
let ds = this.rdf.GetDataSourceBlocking(url);
|
let ds = this.rdf.GetDataSourceBlocking(url);
|
||||||
if (!ds) {
|
if (!ds) {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
"FeedUtils.getItemsDS: can't get feed items " + "data source - " + url
|
"FeedUtils.getItemsDS: can't get feed items data source - " + url
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
// Note that it this point the datasource may not be loaded yet.
|
// Note that it this point the datasource may not be loaded yet.
|
||||||
|
|
|
@ -522,7 +522,7 @@ FeedParser.prototype = {
|
||||||
|
|
||||||
if (!aFeed.title) {
|
if (!aFeed.title) {
|
||||||
FeedUtils.log.error(
|
FeedUtils.log.error(
|
||||||
"FeedParser.parseAsAtom: missing mandatory element " + "<title>"
|
"FeedParser.parseAsAtom: missing mandatory element <title>"
|
||||||
);
|
);
|
||||||
aFeed.onParseError(aFeed);
|
aFeed.onParseError(aFeed);
|
||||||
return [];
|
return [];
|
||||||
|
@ -726,7 +726,7 @@ FeedParser.prototype = {
|
||||||
|
|
||||||
if (!aFeed.title) {
|
if (!aFeed.title) {
|
||||||
FeedUtils.log.error(
|
FeedUtils.log.error(
|
||||||
"FeedParser.parseAsAtomIETF: missing mandatory element " + "<title>"
|
"FeedParser.parseAsAtomIETF: missing mandatory element <title>"
|
||||||
);
|
);
|
||||||
aFeed.onParseError(aFeed);
|
aFeed.onParseError(aFeed);
|
||||||
return [];
|
return [];
|
||||||
|
|
|
@ -41,7 +41,7 @@ function run_test() {
|
||||||
result: "",
|
result: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
header: "Content-Type:\r\n" + "\r\n",
|
header: "Content-Type:\r\n\r\n",
|
||||||
result: "",
|
result: "",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче