From 0a0ee0ab2ae20ec25a25f335f47e74536daccc3e Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Wed, 15 Aug 2018 16:19:00 -0500 Subject: Fix a RuboCop warning --- lib/gitlab_keys.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gitlab_keys.rb') 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 -- cgit v1.2.1