From 0d5f5fa03b25711b3c2f5c450d8c671d713c91ce Mon Sep 17 00:00:00 2001 From: Echo Date: Sun, 8 Jun 2025 21:26:41 -0400 Subject: [PATCH] fix: Layout/TrailingWhitespace --- app/jobs/attempt_project_repo_mapping_job.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/jobs/attempt_project_repo_mapping_job.rb b/app/jobs/attempt_project_repo_mapping_job.rb index a51e3eb..eaaaec1 100644 --- a/app/jobs/attempt_project_repo_mapping_job.rb +++ b/app/jobs/attempt_project_repo_mapping_job.rb @@ -66,12 +66,12 @@ class AttemptProjectRepoMappingJob < ApplicationJob .get("https://api.github.com/users/#{@user.github_username}/orgs") Rails.logger.info "GitHub orgs response: #{response.body}" - + return [] unless response.status.success? - + parsed_response = JSON.parse(response.body) return [] unless parsed_response.is_a?(Array) - + parsed_response rescue JSON::ParserError => e Rails.logger.error "Failed to parse GitHub orgs response: #{e.message}"