Skip to content

Commit

Permalink
rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed May 3, 2024
1 parent 0e70ab2 commit aefa6a5
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main/ruby/lib/merritt_zk_queue_item.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,10 +186,8 @@ def payload_text
end

def payload_object
json = {payload: payload_text}
if json?
json = JSON.parse(payload_text, symbolize_names: true)
end
json = { payload: payload_text }
json = JSON.parse(payload_text, symbolize_names: true) if json?
json[:queueNode] = '/jobs'
json[:id] = @id
json[:date] = time.to_s
Expand Down

0 comments on commit aefa6a5

Please sign in to comment.