mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-10 23:36:14 -05:00
Cleanup indentation now JSCS can see it
- this is needed to make #6925 mergable
This commit is contained in:
parent
f6ba114728
commit
6bcc08e874
4 changed files with 23 additions and 18 deletions
|
@ -377,13 +377,15 @@ authentication = {
|
|||
}
|
||||
|
||||
function formatResponse(isSetup) {
|
||||
return {setup: [{
|
||||
status: isSetup,
|
||||
// Pre-populate from config if, and only if the values exist in config.
|
||||
title: config.title || undefined,
|
||||
name: config.user_name || undefined,
|
||||
email: config.user_email || undefined
|
||||
}]};
|
||||
return {setup: [
|
||||
{
|
||||
status: isSetup,
|
||||
// Pre-populate from config if, and only if the values exist in config.
|
||||
title: config.title || undefined,
|
||||
name: config.user_name || undefined,
|
||||
email: config.user_email || undefined
|
||||
}
|
||||
]};
|
||||
}
|
||||
|
||||
tasks = [
|
||||
|
|
|
@ -34,14 +34,17 @@ function sendMail(object) {
|
|||
|
||||
return mailer.send(object.mail[0].message).catch(function (err) {
|
||||
if (mailer.state.usingDirect) {
|
||||
notifications.add({notifications: [{
|
||||
type: 'warn',
|
||||
message: [
|
||||
i18n.t('warnings.index.unableToSendEmail'),
|
||||
i18n.t('common.seeLinkForInstructions',
|
||||
{link: '<a href=\'http://support.ghost.org/mail\' target=\'_blank\'>http://support.ghost.org/mail</a>'})
|
||||
].join(' ')
|
||||
}]}, {context: {internal: true}});
|
||||
notifications.add(
|
||||
{notifications: [{
|
||||
type: 'warn',
|
||||
message: [
|
||||
i18n.t('warnings.index.unableToSendEmail'),
|
||||
i18n.t('common.seeLinkForInstructions',
|
||||
{link: '<a href=\'http://support.ghost.org/mail\' target=\'_blank\'>http://support.ghost.org/mail</a>'})
|
||||
].join(' ')
|
||||
}]},
|
||||
{context: {internal: true}}
|
||||
);
|
||||
}
|
||||
|
||||
return Promise.reject(new errors.EmailError(err.message));
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/*globals describe, before, beforeEach, afterEach, it */
|
||||
/*globals describe, before, beforeEach, afterEach, it */
|
||||
var testUtils = require('../../utils'),
|
||||
should = require('should'),
|
||||
_ = require('lodash'),
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
var path = require('path'),
|
||||
util = require('./goodlib.js'),
|
||||
nested = require('./nested/goodnested');
|
||||
util = require('./goodlib.js'),
|
||||
nested = require('./nested/goodnested');
|
||||
|
||||
function GoodApp(app) {
|
||||
this.app = app;
|
||||
|
|
Loading…
Add table
Reference in a new issue