Skip to content

Commit

Permalink
Fix linter for release
Browse files Browse the repository at this point in the history
  • Loading branch information
vpereira authored and Dany Marcoux committed Apr 26, 2021
1 parent ec6086e commit 85b41ee
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/api/app/models/token/release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ def self.token_name

def call(_options)
manual_release_targets = package_from_association_or_params.project.release_targets.where(trigger: 'manual')
raise NoPermissionForPackage.setup('not_found', 404, "#{package_from_association_or_params.project} has no release targets that are triggered manually") unless manual_release_targets.any?
unless manual_release_targets.any?
raise NoPermissionForPackage.setup('not_found', 404,
"#{package_from_association_or_params.project} has no release targets that are triggered manually")
end

manual_release_targets.each do |release_target|
release_package(package_from_association_or_params,
Expand Down

0 comments on commit 85b41ee

Please sign in to comment.