mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-03-11 02:12:21 -05:00
Fixed function complexity linting warning
no issue - Touched this file while looking into use of config.user_name/user_email and it was almost criminal to not do a tiny improvement
This commit is contained in:
parent
cb16675e29
commit
cf14b5f433
3 changed files with 27 additions and 33 deletions
|
@ -98,17 +98,15 @@ module.exports = {
|
|||
|
||||
isSetup: {
|
||||
permissions: false,
|
||||
query() {
|
||||
return auth.setup.checkIsSetup()
|
||||
.then((isSetup) => {
|
||||
return {
|
||||
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
|
||||
};
|
||||
});
|
||||
async query() {
|
||||
const isSetup = await auth.setup.checkIsSetup();
|
||||
|
||||
return {
|
||||
status: isSetup,
|
||||
title: config.title,
|
||||
name: config.user_name,
|
||||
email: config.user_email
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -78,17 +78,15 @@ module.exports = {
|
|||
|
||||
isSetup: {
|
||||
permissions: false,
|
||||
query() {
|
||||
return auth.setup.checkIsSetup()
|
||||
.then((isSetup) => {
|
||||
return {
|
||||
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
|
||||
};
|
||||
});
|
||||
async query() {
|
||||
const isSetup = await auth.setup.checkIsSetup();
|
||||
|
||||
return {
|
||||
status: isSetup,
|
||||
title: config.title,
|
||||
name: config.user_name,
|
||||
email: config.user_email
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -81,17 +81,15 @@ module.exports = {
|
|||
|
||||
isSetup: {
|
||||
permissions: false,
|
||||
query() {
|
||||
return auth.setup.checkIsSetup()
|
||||
.then((isSetup) => {
|
||||
return {
|
||||
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
|
||||
};
|
||||
});
|
||||
async query() {
|
||||
const isSetup = await auth.setup.checkIsSetup();
|
||||
|
||||
return {
|
||||
status: isSetup,
|
||||
title: config.title,
|
||||
name: config.user_name,
|
||||
email: config.user_email
|
||||
};
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue