summaryrefslogtreecommitdiff
path: root/app/client
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2018-09-22 14:50:55 +0200
committerJules Laplace <julescarbon@gmail.com>2018-09-22 14:50:55 +0200
commit83b9f1f4e9a554fcb6faf4f2a3c3f1971bc7aa5d (patch)
treeafa5e1bf1592786dc56a048c870c3e77c0d6551b /app/client
parent28d6dd9a097be3f76ede22f63c6c68a78607aec8 (diff)
dont transmit path
Diffstat (limited to 'app/client')
-rw-r--r--app/client/util/format.js12
1 files changed, 5 insertions, 7 deletions
diff --git a/app/client/util/format.js b/app/client/util/format.js
index e436a3e..c8e8f3f 100644
--- a/app/client/util/format.js
+++ b/app/client/util/format.js
@@ -71,21 +71,19 @@ export function hush_size (n, bias, no_bold) {
if (n < 1000000) {
return ["quiet", txt + " kb."]
}
- else if (n < (20000000/bias)) {
+ if (n < (20000000/bias)) {
return ["quiet", txt + " mb."]
}
- else if (n < (50000000/bias)) {
+ if (n < (50000000/bias)) {
return ["old", txt + " mb."]
}
- else if (n < (80000000/bias)) {
+ if (n < (80000000/bias)) {
return ["med", txt + " mb."]
}
- else if (no_bold || n < (170000000/bias)) {
+ if (no_bold || n < (170000000/bias)) {
return ["recent", txt + " mb."]
}
- else {
- return ["new", txt + " mb."]
- }
+ return ["new", txt + " mb."]
}
export function hush_null (n, unit, no_bold) {
var s = unit ? n + " " + unit + "." : n