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 def user
begin begin
User.find(object.user_id) User.find(object.user_id)
rescue StandardError rescue
nil nil
end end
end end

View File

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

View File

@ -1,22 +1,22 @@
export default Ember.Helper.helper(function (params) { export default Ember.Helper.helper(function(params) {
let currencySign let currencySign;
switch (params[0]) { switch (params[0]) {
case 'EUR': case "EUR":
case 'eur': case "eur":
currencySign = '€' currencySign = "€";
break break
case 'GBP': case "GBP":
case 'gbp': case "gbp":
currencySign = '£' currencySign = "£";
break break
case 'INR': case "INR":
case 'inr': case "inr":
currencySign = '₹' currencySign = "₹";
break break
default: 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 client: true
discourse_subscriptions_currency: discourse_subscriptions_currency:
client: true client: true
default: 'USD' default: "USD"
type: enum type: enum
choices: choices:
- AUD - AUD