diff options
author | Gabriel Mazetto <brodock@gmail.com> | 2017-08-09 08:41:32 +0200 |
---|---|---|
committer | Gabriel Mazetto <brodock@gmail.com> | 2017-08-22 06:33:20 +0200 |
commit | fff5ebdcae6794de35f8eaff15217d8643c83686 (patch) | |
tree | 178ffe67551e78ec99e5d2df001bbcc93d96a9c3 /app/models/storage | |
parent | 95a270c87104e1225d4c29a54611f5e4f7a76b56 (diff) | |
download | gitlab-ce-fff5ebdcae6794de35f8eaff15217d8643c83686.tar.gz |
Removed some useless code, codestyle changes and removed an index
Diffstat (limited to 'app/models/storage')
-rw-r--r-- | app/models/storage/hashed_project.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/storage/hashed_project.rb b/app/models/storage/hashed_project.rb index 91f74b084b6..e6d68a177fe 100644 --- a/app/models/storage/hashed_project.rb +++ b/app/models/storage/hashed_project.rb @@ -11,14 +11,14 @@ module Storage # # @return [String] directory where repository is stored def base_dir - %Q(#{disk_hash[0..1]}/#{disk_hash[2..3]}) if disk_hash + "#{disk_hash[0..1]}/#{disk_hash[2..3]}" if disk_hash end # Disk path is used to build repository and project's wiki path on disk # # @return [String] combination of base_dir and the repository own name without `.git` or `.wiki.git` extensions def disk_path - %Q(#{base_dir}/#{disk_hash}) + "#{base_dir}/#{disk_hash}" end def ensure_storage_path_exist |