Resolve rubocop warning