diff options
author | Robert Speicher <rspeicher@gmail.com> | 2016-11-30 10:34:29 +0300 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2017-02-11 01:40:38 +0300 |
commit | 5db56efe424c9cd760580a755ec4e131d045769d (patch) | |
tree | 079042491d8a5a721658f0bed50c5e1f3534830f /app/helpers/preferences_helper.rb | |
parent | 92cbc1e4ad8d874428089c4c65293fa218f67206 (diff) |
Enable `Style/RedundantException` cop and correct offense
Diffstat (limited to 'app/helpers/preferences_helper.rb')
-rw-r--r-- | app/helpers/preferences_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/preferences_helper.rb b/app/helpers/preferences_helper.rb index 6e68aad4cb7..dd0a4ea03f0 100644 --- a/app/helpers/preferences_helper.rb +++ b/app/helpers/preferences_helper.rb @@ -23,7 +23,7 @@ module PreferencesHelper if defined.size != DASHBOARD_CHOICES.size # Ensure that anyone adding new options updates this method too - raise RuntimeError, "`User` defines #{defined.size} dashboard choices," + + raise "`User` defines #{defined.size} dashboard choices," \ " but `DASHBOARD_CHOICES` defined #{DASHBOARD_CHOICES.size}." else defined.map do |key, _| |