Skip to content

Commit

Permalink
Remove nil Check
Browse files Browse the repository at this point in the history
Including the check for nil can actually cause errors. If there is an error then the problem is somewhere else.
  • Loading branch information
jwaspin committed Jan 31, 2024
1 parent 6bcf90d commit d26adf3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def writeHtml(hDataQuality)
scopeClass = Html_Scope.new(@html)
dataQualityReportClass = Html_DataQualityReport.new(@html)

unless hDataQuality[:scope].nil? || hDataQuality[:scope].empty?
unless hDataQuality[:scope].empty?
@html.div(class: 'block') do
@html.div do
@html.div('Scope', {'class' => 'h5'})
Expand Down

0 comments on commit d26adf3

Please sign in to comment.