diff options
author | Robert Speicher <rspeicher@gmail.com> | 2018-08-15 16:19:00 -0500 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2018-08-15 16:48:32 -0500 |
commit | 0a0ee0ab2ae20ec25a25f335f47e74536daccc3e (patch) | |
tree | 83012750a19d53d2910cffad1bd842fb92b4657e | |
parent | 9bcdcf1c9fcd0d8dddd0931450d31134d27e622a (diff) | |
download | gitlab-shell-0a0ee0ab2ae20ec25a25f335f47e74536daccc3e.tar.gz |
Fix a RuboCop warning
-rw-r--r-- | lib/gitlab_keys.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab_keys.rb b/lib/gitlab_keys.rb index 3ee2882..0600a18 100644 --- a/lib/gitlab_keys.rb +++ b/lib/gitlab_keys.rb @@ -136,7 +136,7 @@ class GitlabKeys # rubocop:disable Metrics/ClassLength lock do $logger.info('Removing key', key_id: @key_id) open_auth_file('r+') do |f| - while line = f.gets # rubocop:disable Style/AssignmentInCondition + while line = f.gets # rubocop:disable Lint/AssignmentInCondition next unless line.start_with?("command=\"#{self.class.command_key(@key_id)}\"") f.seek(-line.length, IO::SEEK_CUR) # Overwrite the line with #'s. Because the 'line' variable contains |