Skip to content

Commit

Permalink
Two style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
david-yz-liu committed Dec 21, 2014
1 parent 072b7a8 commit b278022
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/repo/git_repository.rb
Expand Up @@ -898,7 +898,7 @@ def directories_at_path(path)
def path_exists?(path)

# Chop the forward-slash off the end
if path[-1,1] == '/'
if path[-1] == '/'
path = path[0..-2]
end

Expand All @@ -909,8 +909,7 @@ def path_exists?(path)

# Follow the 'tree-path' and return false if we cannot find
# each part along the way
parts.each {
|path_part|
parts.each { |path_part|
found = false
current_tree = nil
tree_ptr.each { |current_tree|
Expand Down

0 comments on commit b278022

Please sign in to comment.