Eliminate if-statement (#3561)

Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com>
This commit is contained in:
Aya Morisawa 2018-12-09 03:43:58 +09:00 committed by GitHub
parent e87b9cc019
commit a2db4db963
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,6 +1,3 @@
import Vue from 'vue'; import Vue from 'vue';
Vue.filter('number', (n) => { Vue.filter('number', n => n == null ? 'N/A' : n.toLocaleString());
if (n == null) return 'N/A';
return n.toLocaleString();
});