Tidy up conditional message

This commit is contained in:
charlieablett 2019-09-02 17:52:11 +12:00
parent 23bb9424c0
commit c3c84ff8ea
1 changed files with 7 additions and 5 deletions

View File

@ -43,13 +43,15 @@ module Gitlab
end
def help_footer
<<~MESSAGE
#{project_info if @project}
*Documentation*
message = @project ? project_info : ''
message += <<~MESSAGE
*Documentation*
For more information about GitLab chatops, refer to its
documentation: https://docs.gitlab.com/ce/ci/chatops/README.html.
For more information about GitLab chatops, refer to its
documentation: https://docs.gitlab.com/ce/ci/chatops/README.html.
MESSAGE
message
end
def project_info