summaryrefslogtreecommitdiff
path: root/app/services/notes/create_service.rb
diff options
context:
space:
mode:
authorRuben Davila <rdavila84@gmail.com>2016-11-18 21:19:04 -0500
committerRuben Davila <rdavila84@gmail.com>2016-11-18 21:19:04 -0500
commit452d1d0824f44664484c35a2acc7c008c8167196 (patch)
tree4fc0203967136f3a3f1d93fd42ae565f3afffc0a /app/services/notes/create_service.rb
parentaea8baed3093c513560e9ac5ac0c5c99508d3001 (diff)
downloadgitlab-ce-452d1d0824f44664484c35a2acc7c008c8167196.tar.gz
Backport some changes done from Time Tracking feature in EE.ee-870-backport
Diffstat (limited to 'app/services/notes/create_service.rb')
-rw-r--r--app/services/notes/create_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/notes/create_service.rb b/app/services/notes/create_service.rb
index e338792412b..7935fabe2da 100644
--- a/app/services/notes/create_service.rb
+++ b/app/services/notes/create_service.rb
@@ -35,7 +35,7 @@ module Notes
todo_service.new_note(note, current_user)
end
- if command_params && command_params.any?
+ if command_params.present?
slash_commands_service.execute(command_params, note)
# We must add the error after we call #save because errors are reset