Skip to content

Commit 53ecf0d

Browse files
committed
Correct indentation
1 parent 745b775 commit 53ecf0d

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

lib/bitbucket_rest_api/repos/download.rb

+12-12
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22

33
module BitBucket
44
class Repos::Download < API
5-
REQUIRED_KEY_PARAM_NAMES = %w[ commit_hash ].freeze
6-
def get(user_name, repo_name, params={})
7-
_update_user_repo_params(user_name, repo_name)
8-
_validate_user_repo_params(user, repo) unless user? && repo?
9-
# normalize! params
10-
# assert_required_keys(REQUIRED_KEY_PARAM_NAMES, params)
11-
12-
#https://bitbucket.org/jhanley85/eternum_canvas_demo/get/fd931f96f12d.zip
13-
"https://bitbucket.org/#{user}/#{repo.downcase}/get/#{params[:commit_hash]}.tar.gz"
5+
REQUIRED_KEY_PARAM_NAMES = %w[ commit_hash ].freeze
6+
def get(user_name, repo_name, params={})
7+
_update_user_repo_params(user_name, repo_name)
8+
_validate_user_repo_params(user, repo) unless user? && repo?
9+
# normalize! params
10+
# assert_required_keys(REQUIRED_KEY_PARAM_NAMES, params)
11+
12+
#https://bitbucket.org/jhanley85/eternum_canvas_demo/get/fd931f96f12d.zip
13+
"https://bitbucket.org/#{user}/#{repo.downcase}/get/#{params[:commit_hash]}.tar.gz"
1414
end
15-
16-
17-
15+
16+
17+
1818

1919

2020
end # Repos::Keys

0 commit comments

Comments
 (0)