Commit 8a1738c7 authored by Rajendra Kadam's avatar Rajendra Kadam

Remove explicit nil

parent 2cb432c3
...@@ -30,10 +30,10 @@ module Gitlab ...@@ -30,10 +30,10 @@ module Gitlab
unless skip_validation? unless skip_validation?
self.class.schemer.validate(attributes.stringify_keys).each do |error| self.class.schemer.validate(attributes.stringify_keys).each do |error|
error_message = <<~ERROR_MSG error_message = <<~ERROR_MSG
Error type: #{error['type'] || nil} Error type: #{error['type']}
Data: #{error['data'] || nil} Data: #{error['data']}
Path: #{error['data_pointer'] || nil} Path: #{error['data_pointer']}
Details: #{error['details'] || nil} Details: #{error['details']}
Metric file: #{path} Metric file: #{path}
ERROR_MSG ERROR_MSG
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment