mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
remove all changes from eslint --fix
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import content from '../content/index';
|
||||
import i18n from '../i18n';
|
||||
|
||||
module.exports = function (user, req, cb, analytics) {
|
||||
module.exports = function(user, req, cb, analytics) {
|
||||
var analyticsData, pet;
|
||||
if (user.balance < 1) {
|
||||
return typeof cb === 'function' ? cb({
|
||||
return typeof cb === "function" ? cb({
|
||||
code: 401,
|
||||
message: i18n.t('notEnoughGems', req.language)
|
||||
}) : void 0;
|
||||
@@ -17,7 +17,7 @@ module.exports = function (user, req, cb, analytics) {
|
||||
user.achievements.beastMasterCount = 0;
|
||||
}
|
||||
user.achievements.beastMasterCount++;
|
||||
user.items.currentPet = '';
|
||||
user.items.currentPet = "";
|
||||
}
|
||||
analyticsData = {
|
||||
uuid: user._id,
|
||||
@@ -25,8 +25,8 @@ module.exports = function (user, req, cb, analytics) {
|
||||
gemCost: 4,
|
||||
category: 'behavior'
|
||||
};
|
||||
if (analytics !== null) {
|
||||
if (analytics != null) {
|
||||
analytics.track('release pets', analyticsData);
|
||||
}
|
||||
return typeof cb === 'function' ? cb(null, user) : void 0;
|
||||
return typeof cb === "function" ? cb(null, user) : void 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user