diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-22 18:57:19 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-22 18:57:19 +0200 |
commit | f83801a9fe092334d5b325bbe4b736aa6b88007e (patch) | |
tree | 9303896a1835f3841e176943d63088bb7df29489 /lib/httpunix.rb | |
parent | 8f9046aad854e4c861c3a016cc3dd69e137a5c27 (diff) | |
download | gitlab-shell-dz-update-deps.tar.gz |
Update files to pass modern rubocop checks. Disable some of themdz-update-deps
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/httpunix.rb')
-rw-r--r-- | lib/httpunix.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/httpunix.rb b/lib/httpunix.rb index db160eb..7d00f71 100644 --- a/lib/httpunix.rb +++ b/lib/httpunix.rb @@ -11,7 +11,7 @@ module URI class HTTPUNIX < HTTP def hostname # decode %XX from path to file - v = self.host + v = host URI.decode(v) end @@ -30,7 +30,7 @@ end # - Net::HTTP::connect module Net class HTTPUNIX < HTTP - def initialize(socketpath, port=nil) + def initialize(socketpath, port = nil) super(socketpath, port) @port = nil # HTTP will set it to default - override back -> set DEFAULT_PORT end |