Skip to content

Commit

Permalink
Make sure project exists when checking if it's staging
Browse files Browse the repository at this point in the history
  • Loading branch information
hellcp-work committed Jan 17, 2023
1 parent ca76bbd commit 216e5e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/review.rb
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ def for_package?
end

def staging_project?
for_project? && !project.staging_workflow_id.nil?
for_project? && !project&.staging_workflow_id.nil?
end

private
Expand Down

0 comments on commit 216e5e6

Please sign in to comment.