Commit dd8f090bc84a96bce0f086a8be9840751da21747

Authored by Dmitriy Zaporozhets
1 parent efa26760

Fix hardcoded condition and unassigned vars

app/controllers/public/projects_controller.rb
... ... @@ -19,6 +19,6 @@ class Public::ProjectsController < ApplicationController
19 19 @recent_tags = @repository.tags.first(10)
20 20  
21 21 @commit = @repository.commit(params[:ref])
22   - @tree = Tree.new(@repository, @commit.id, @ref, @path)
  22 + @tree = Tree.new(@repository, @commit.id)
23 23 end
24 24 end
... ...
app/views/public/projects/_tree.html.haml
1   -- if false#tree.readme
  1 +- if tree.readme
2 2 = render "projects/tree/readme", readme: tree.readme
3 3 - else
4 4 .alert
... ...