Skip to content

Commit

Permalink
[webui][api] Rename variable and align hash to increase readability
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Aug 18, 2015
1 parent 871a6fb commit 1b28c65
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/api/app/models/channel_binary.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,11 @@ def create_xml(options = {})
package: channel.package.name
}
builder.channel(attributes) do |c|
p = { name: name }
p[:package] = package if package
p[:binaryarch] = binaryarch if binaryarch
p[:supportstatus] = supportstatus if supportstatus
c.binary(p)
binary_data = { name: name }
binary_data[:package] = package if package
binary_data[:binaryarch] = binaryarch if binaryarch
binary_data[:supportstatus] = supportstatus if supportstatus
c.binary(binary_data)

# report target repository and products using it.
if options[:include_channel_targets]
Expand Down

0 comments on commit 1b28c65

Please sign in to comment.