Skip to content

Commit

Permalink
Merge pull request #6259 from ChrisBr/staging-workflow-rubocop
Browse files Browse the repository at this point in the history
Fix rubocop violations
  • Loading branch information
ChrisBr committed Nov 14, 2018
2 parents 0d7aa17 + da5db2f commit 76802b4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/api/app/models/staging/staging_project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ def set_buildinfo
code = status.get('code')

if code.in?(['broken', 'failed']) || (code == 'unresolvable' && !building)
@broken_packages << { package: status['package'],
project: name,
state: code,
details: status['details'],
@broken_packages << { package: status['package'],
project: name,
state: code,
details: status['details'],
repository: result['repository'],
arch: result['arch'] }
arch: result['arch'] }
end
end

Expand Down
2 changes: 1 addition & 1 deletion src/api/app/models/staging/workflow.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ def self.table_name_prefix

belongs_to :project, inverse_of: :staging
has_many :staging_projects, class_name: 'Staging::StagingProject', inverse_of: :staging_workflow, dependent: :nullify,
foreign_key: 'staging_workflow_id' do
foreign_key: 'staging_workflow_id' do
def without_staged_requests
left_outer_joins(:staged_requests).where(bs_requests: { id: nil })
end
Expand Down

0 comments on commit 76802b4

Please sign in to comment.