Skip to content

Commit fd56bc8

Browse files
committed
Fix style
1 parent 088070a commit fd56bc8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/messages/validators.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,7 @@ def validate(record)
245245

246246
if record.options.blank?
247247
# Route Creation with explicit 'null' options is not allowed
248-
if record.is_a?(VCAP::CloudController::RouteCreateMessage) && record.options.nil?
249-
record.errors.add(:options, message: 'is not a valid object')
250-
end
248+
record.errors.add(:options, message: 'is not a valid object') if record.is_a?(VCAP::CloudController::RouteCreateMessage) && record.options.nil?
251249
return
252250
end
253251

0 commit comments

Comments
 (0)