diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-08-18 15:59:17 +0200 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-08-18 15:59:17 +0200 |
commit | df7f2b135a1d811761272ef0f9140ae5aa16c01d (patch) | |
tree | 752dadc688b960e1c35dfcd8d3d375638edaca76 | |
parent | a902166475772521201196f3f9984c663c6c2ee5 (diff) | |
download | gitlab-ce-df7f2b135a1d811761272ef0f9140ae5aa16c01d.tar.gz |
Simplify method arguments
-rw-r--r-- | lib/gitlab/git/repository.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/git/repository.rb b/lib/gitlab/git/repository.rb index 163ffb6efc5..39263d9e6fc 100644 --- a/lib/gitlab/git/repository.rb +++ b/lib/gitlab/git/repository.rb @@ -607,9 +607,9 @@ module Gitlab # # Example # repo.update_remote("origin", url: "path/to/repo") - def remote_update(remote_name, options = {}) + def remote_update(remote_name, url:) # TODO: Implement other remote options - rugged.remotes.set_url(remote_name, options[:url]) if options[:url] + rugged.remotes.set_url(remote_name, url) end AUTOCRLF_VALUES = { |