提交 df7f2b13 编写于 作者: J Jacob Vosmaer

Simplify method arguments

上级 a9021664
......@@ -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 = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册