mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-13 22:59:19 +10:00
Fix hardcoded condition and unassigned vars
This commit is contained in:
@@ -19,6 +19,6 @@ class Public::ProjectsController < ApplicationController
|
||||
@recent_tags = @repository.tags.first(10)
|
||||
|
||||
@commit = @repository.commit(params[:ref])
|
||||
@tree = Tree.new(@repository, @commit.id, @ref, @path)
|
||||
@tree = Tree.new(@repository, @commit.id)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
- if false#tree.readme
|
||||
- if tree.readme
|
||||
= render "projects/tree/readme", readme: tree.readme
|
||||
- else
|
||||
.alert
|
||||
|
||||
Reference in New Issue
Block a user