remove all changes from eslint --fix

This commit is contained in:
Matteo Pagliazzi
2016-03-08 17:45:14 +01:00
parent eeebe4c342
commit 5a2daabada
37 changed files with 224 additions and 223 deletions

View File

@@ -1,7 +1,7 @@
import content from '../content/index';
import i18n from '../i18n';
module.exports = function (user, req, cb) {
module.exports = function(user, req, cb) {
var egg, eggText, evolve, food, message, pet, petDisplayName, potion, potionText, ref, ref1, ref2, userPets;
ref = req.params, pet = ref.pet, food = ref.food;
food = content.food[food];
@@ -14,35 +14,35 @@ module.exports = function (user, req, cb) {
egg: eggText
});
if (!userPets[pet]) {
return typeof cb === 'function' ? cb({
return typeof cb === "function" ? cb({
code: 404,
message: i18n.t('messagePetNotFound', req.language)
}) : void 0;
}
if (!((ref2 = user.items.food) !== null ? ref2[food.key] : void 0)) {
return typeof cb === 'function' ? cb({
if (!((ref2 = user.items.food) != null ? ref2[food.key] : void 0)) {
return typeof cb === "function" ? cb({
code: 404,
message: i18n.t('messageFoodNotFound', req.language)
}) : void 0;
}
if (content.specialPets[pet]) {
return typeof cb === 'function' ? cb({
return typeof cb === "function" ? cb({
code: 401,
message: i18n.t('messageCannotFeedPet', req.language)
}) : void 0;
}
if (user.items.mounts[pet]) {
return typeof cb === 'function' ? cb({
return typeof cb === "function" ? cb({
code: 401,
message: i18n.t('messageAlreadyMount', req.language)
}) : void 0;
}
message = '';
evolve = function () {
evolve = function() {
userPets[pet] = -1;
user.items.mounts[pet] = true;
if (pet === user.items.currentPet) {
user.items.currentPet = '';
user.items.currentPet = "";
}
return message = i18n.t('messageEvolve', {
egg: petDisplayName
@@ -69,7 +69,7 @@ module.exports = function (user, req, cb) {
}
}
user.items.food[food.key]--;
return typeof cb === 'function' ? cb({
return typeof cb === "function" ? cb({
code: 200,
message: message
}, {