Skip to content

Commit 0181fe7

Browse files
committed
Can't push apps with app manifests if routes were shared
Fix rubocop error
1 parent ba67c2d commit 0181fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/actions/manifest_route_update.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ def find_or_create_valid_route(app, manifest_route, user_audit_info)
9595
elsif route.space.guid != app.space_guid
9696
# check if route is shared with space
9797
spaces = route.shared_spaces
98-
raise InvalidRoute.new('Routes cannot be mapped to destinations in different spaces') if spaces.blank? || !spaces.any? { |space| space.values[:id] == app.space.id }
98+
raise InvalidRoute.new('Routes cannot be mapped to destinations in different spaces') if spaces.blank? || spaces.none? { |space| space.values[:id] == app.space.id }
9999
elsif manifest_route[:options] && route[:options] != manifest_route[:options]
100100
# remove nil values from options
101101
manifest_route[:options] = manifest_route[:options].compact

0 commit comments

Comments
 (0)