diff options
author | Yorick Peterse <yorickpeterse@gmail.com> | 2015-12-28 11:33:40 +0100 |
---|---|---|
committer | Yorick Peterse <yorickpeterse@gmail.com> | 2015-12-28 11:33:40 +0100 |
commit | ddca57d3f25e52e5e4061dd3610f1269efe2400d (patch) | |
tree | 7ab1e1ca58417e13839ab57950b135e43ec396d8 | |
parent | f181f05e8abd7b1066c11578193f6d7170764bf5 (diff) | |
download | gitlab-ce-ddca57d3f25e52e5e4061dd3610f1269efe2400d.tar.gz |
Use String#delete for removing double quotes
-rw-r--r-- | lib/gitlab/metrics/obfuscated_sql.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/metrics/obfuscated_sql.rb b/lib/gitlab/metrics/obfuscated_sql.rb index 7b15670aa6b..481aca56efb 100644 --- a/lib/gitlab/metrics/obfuscated_sql.rb +++ b/lib/gitlab/metrics/obfuscated_sql.rb @@ -37,7 +37,7 @@ module Gitlab # InfluxDB escapes double quotes upon output, so lets get rid of them # whenever we can. if Gitlab::Database.postgresql? - sql = sql.gsub('"', '') + sql = sql.delete('"') end sql |