Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Léo-Paul Géneau
gitlab-ce
Commits
24068596
Commit
24068596
authored
Jun 14, 2018
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed linting error with trailing space in rb
parent
3b2a909a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/controllers/concerns/renders_blob.rb
app/controllers/concerns/renders_blob.rb
+1
-1
spec/controllers/projects/blob_controller_spec.rb
spec/controllers/projects/blob_controller_spec.rb
+1
-1
No files found.
app/controllers/concerns/renders_blob.rb
View file @
24068596
...
@@ -14,7 +14,7 @@ module RendersBlob
...
@@ -14,7 +14,7 @@ module RendersBlob
return
unless
viewer
return
unless
viewer
return
{}
if
params
[
:html_render
]
==
'false'
return
{}
if
params
[
:html_render
]
==
'false'
{
{
html:
view_to_html_string
(
"projects/blob/_viewer"
,
viewer:
viewer
,
load_async:
false
)
html:
view_to_html_string
(
"projects/blob/_viewer"
,
viewer:
viewer
,
load_async:
false
)
...
...
spec/controllers/projects/blob_controller_spec.rb
View file @
24068596
...
@@ -70,7 +70,7 @@ describe Projects::BlobController do
...
@@ -70,7 +70,7 @@ describe Projects::BlobController do
it
do
it
do
expect
(
response
).
to
be_ok
expect
(
response
).
to
be_ok
expect
(
json_response
).
not
e
_to
have_key
'html'
expect
(
json_response
).
not_to
have_key
'html'
end
end
end
end
end
end
...
...
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