Skip to content

Commit

Permalink
More rubocop whining
Browse files Browse the repository at this point in the history
  • Loading branch information
micahaspyr committed Apr 23, 2024
1 parent 791325e commit 934989f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions app/controllers/claims_base_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ def show
end

def service_history
if current_user.icn
history = service.get_service_history(current_user.icn)
else
# find the current user icn via querying an auth endpoint
end
history = if current_user.icn
service.get_service_history(current_user.icn)
else
# find the current user icn via querying an auth endpoint
{ data: [] }
end

render(json: history)
end
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
end

context 'logged in user with icn' do
let(:icn) { '123498767V234859'}
let(:icn) { '123498767V234859' }

it 'returns the service history' do
VCR.use_cassette('lighthouse/veteran_verification/service_history/200_response') do
Expand Down

0 comments on commit 934989f

Please sign in to comment.