summaryrefslogtreecommitdiff
path: root/app/models/project_services/pushover_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/project_services/pushover_service.rb')
-rw-r--r--app/models/project_services/pushover_service.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/models/project_services/pushover_service.rb b/app/models/project_services/pushover_service.rb
index 8777a44b72f..4e48c348b45 100644
--- a/app/models/project_services/pushover_service.rb
+++ b/app/models/project_services/pushover_service.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
class PushoverService < Service
BASE_URI = 'https://api.pushover.net/1'.freeze
@@ -79,7 +81,7 @@ class PushoverService < Service
end
if data[:total_commits_count] > 0
- message << "\nTotal commits count: #{data[:total_commits_count]}"
+ message = [message, "Total commits count: #{data[:total_commits_count]}"].join("\n")
end
pushover_data = {