diff options
author | David Gageot <david@gageot.net> | 2012-09-29 14:15:21 +0200 |
---|---|---|
committer | David Gageot <david@gageot.net> | 2012-10-01 08:46:47 +0200 |
commit | fa5b016978a99f32fdcb249e8325aea41d88f9be (patch) | |
tree | a47b59642e2c354dd063238ced6f778f17aec6f5 /sonar-server | |
parent | 7e7dccc3e5c8dbc11ccc0ca7defa9b26f2316246 (diff) | |
download | sonarqube-fa5b016978a99f32fdcb249e8325aea41d88f9be.tar.gz sonarqube-fa5b016978a99f32fdcb249e8325aea41d88f9be.zip |
Shorter code
Diffstat (limited to 'sonar-server')
-rw-r--r-- | sonar-server/src/main/webapp/WEB-INF/app/models/api/utils.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/sonar-server/src/main/webapp/WEB-INF/app/models/api/utils.rb b/sonar-server/src/main/webapp/WEB-INF/app/models/api/utils.rb index 81e74632ca9..56735bef90e 100644 --- a/sonar-server/src/main/webapp/WEB-INF/app/models/api/utils.rb +++ b/sonar-server/src/main/webapp/WEB-INF/app/models/api/utils.rb @@ -46,12 +46,10 @@ class Api::Utils end def self.is_regexp?(s) - begin - Regexp.new(s) - true - rescue - false - end + Regexp.new(s) + true + rescue + false end def self.markdown_to_html(markdown) |