style: prettier

This commit is contained in:
Mariusz Nowak
2018-08-04 09:03:16 +02:00
parent 406f90fdca
commit 133862d2a4

View File

@@ -34,12 +34,8 @@ Object.defineProperty(
if (!stats[id]) stats[id] = { initial: 0, cached: 0 };
data = stats[id];
conf.on("set", function () {
++data.initial;
});
conf.on("get", function () {
++data.cached;
});
conf.on("set", function () { ++data.initial; });
conf.on("get", function () { ++data.cached; });
})
);
@@ -53,7 +49,7 @@ exports.log = function () {
if (!initialCount && !cachedCount) {
return "0.00";
}
return (cachedCount / (initialCount + cachedCount) * 100).toFixed(2);
return ((cachedCount / (initialCount + cachedCount)) * 100).toFixed(2);
};
log = "------------------------------------------------------------\n";