fix(coding-style): linting changes reverted to be consistent with existing style
This commit is contained in:
parent
30299a5f13
commit
53a11872ef
|
@ -31,7 +31,7 @@ class PaymentSerializer < ApplicationSerializer
|
|||
def user
|
||||
begin
|
||||
User.find(object.user_id)
|
||||
rescue StandardError
|
||||
rescue
|
||||
nil
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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("");
|
||||
})
|
||||
});
|
||||
|
|
|
@ -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(" ");
|
||||
});
|
||||
|
|
|
@ -18,7 +18,7 @@ plugins:
|
|||
client: true
|
||||
discourse_subscriptions_currency:
|
||||
client: true
|
||||
default: 'USD'
|
||||
default: "USD"
|
||||
type: enum
|
||||
choices:
|
||||
- AUD
|
||||
|
|
Loading…
Reference in New Issue