BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
1c780792
Commit
1c780792
authored
Oct 12, 2016
by
Airat Shigapov
Committed by
blackst0ne
Oct 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use guard clause instead of if-else statement
parent
f6a97e6c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
hipchat_service.rb
app/models/project_services/hipchat_service.rb
+12
-13
No files found.
app/models/project_services/hipchat_service.rb
View file @
1c780792
...
...
@@ -128,22 +128,21 @@ class HipchatService < Service
end
def
markdown
(
text
,
options
=
{})
if
text
context
=
{
project:
project
,
pipeline: :email
}
return
""
unless
text
Banzai
.
render
(
text
,
context
)
context
=
{
project:
project
,
pipeline: :email
}
context
.
merge!
(
options
)
Banzai
.
render
(
text
,
context
)
html
=
Banzai
.
render
(
text
,
context
)
html
=
Banzai
.
post_process
(
html
,
context
)
sanitize
html
,
attributes:
%w(href title al
t)
else
""
end
context
.
merge!
(
options
)
html
=
Banzai
.
render
(
text
,
contex
t
)
html
=
Banzai
.
post_process
(
html
,
context
)
sanitize
html
,
attributes:
%w(href title alt)
end
def
create_issue_message
(
data
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment