fix(coding-style): linting changes reverted to be consistent with existing style

This commit is contained in:
Raj Rathore 2020-04-23 17:11:00 +05:30
parent 30299a5f13
commit 53a11872ef
4 changed files with 19 additions and 19 deletions

View File

@ -31,7 +31,7 @@ class PaymentSerializer < ApplicationSerializer
def user
begin
User.find(object.user_id)
rescue StandardError
rescue
nil
end
end

View File

@ -1,6 +1,6 @@
// TODO: typo in this helper name: currency not curency.
export default Ember.Helper.helper(function (params) {
let currencySign
export default Ember.Helper.helper(function(params) {
let currencySign;
switch (Discourse.SiteSettings.discourse_subscriptions_currency) {
case "EUR":
@ -17,4 +17,4 @@ export default Ember.Helper.helper(function (params) {
}
return [currencySign, params[0]].join("");
})
});

View File

@ -1,22 +1,22 @@
export default Ember.Helper.helper(function (params) {
let currencySign
export default Ember.Helper.helper(function(params) {
let currencySign;
switch (params[0]) {
case 'EUR':
case 'eur':
currencySign = '€'
case "EUR":
case "eur":
currencySign = "€";
break
case 'GBP':
case 'gbp':
currencySign = '£'
case "GBP":
case "gbp":
currencySign = "£";
break
case 'INR':
case 'inr':
currencySign = '₹'
case "INR":
case "inr":
currencySign = "₹";
break
default:
currencySign = '$'
currencySign = "$";
}
return currencySign + params.map((p) => p.toUpperCase()).join(' ')
})
return currencySign + params.map(p => p.toUpperCase()).join(" ");
});

View File

@ -18,7 +18,7 @@ plugins:
client: true
discourse_subscriptions_currency:
client: true
default: 'USD'
default: "USD"
type: enum
choices:
- AUD