diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-22 18:17:29 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2018-02-22 18:17:29 +0200 |
commit | 8f9046aad854e4c861c3a016cc3dd69e137a5c27 (patch) | |
tree | 1837825ba2cb3cf6e2c805a3354825e4737b9616 /lib/gitlab_keys.rb | |
parent | 9850a74ba6093ecc771f53cb9abd7c9c8a59f266 (diff) | |
download | gitlab-shell-8f9046aad854e4c861c3a016cc3dd69e137a5c27.tar.gz |
Update rubocop and code to pass it
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'lib/gitlab_keys.rb')
-rw-r--r-- | lib/gitlab_keys.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab_keys.rb b/lib/gitlab_keys.rb index 975ee3e..e6dfd99 100644 --- a/lib/gitlab_keys.rb +++ b/lib/gitlab_keys.rb @@ -157,8 +157,8 @@ class GitlabKeys end def open_auth_file(mode) - open(auth_file, mode, 0600) do |file| - file.chmod(0600) + open(auth_file, mode, 0o600) do |file| + file.chmod(0o600) yield file end end |