Skip to content

Commit 8200c85

Browse files
committed
Lint
1 parent 2df827f commit 8200c85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/test_data/dumps_database.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def prepend_set_replication_role!(data_dump_path)
8080

8181
def log_size_info_and_warnings(before_size:, after_size:)
8282
percent_change = percent_change(before_size, after_size)
83-
TestData.log.info " Size: #{to_size(after_size)}#{" (#{percent_change}% #{before_size > after_size ? "decrease" : "increase"})" if percent_change}"
83+
TestData.log.info " Size: #{to_size(after_size)}#{" (#{percent_change}% #{(before_size > after_size) ? "decrease" : "increase"})" if percent_change}"
8484
if after_size > 5242880
8585
TestData.log.warn " WARNING: file size exceeds 5MB. Be sure to only persist what data you need to sufficiently test your application"
8686
end

0 commit comments

Comments
 (0)