Skip to content

Commit

Permalink
Merge pull request #15407 from saraycp/fix_15404/empty_statistics_result
Browse files Browse the repository at this point in the history
Handle statistics result returning nil
  • Loading branch information
saraycp committed Dec 20, 2023
2 parents 9bc909e + 2f20230 commit 560162e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/local_build_statistic/for_package.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def initialize(attributes = {})

def statistic
result = backend_statistics
return if result.empty?
return if result.blank?

disk = result.dig('disk', 'usage')
memory = result.dig('memory', 'usage')
Expand Down

0 comments on commit 560162e

Please sign in to comment.