Fixed linter errors
	
		
			
	
		
	
	
		
	
		
			All checks were successful
		
		
	
	
		
			
				
	
				ci/woodpecker/push/woodpecker Pipeline was successful
				
			
		
		
	
	
				
					
				
			
		
			All checks were successful
		
		
	
	ci/woodpecker/push/woodpecker Pipeline was successful
				
			This commit is contained in:
		| @@ -5,13 +5,11 @@ class Hardware < Sequel::Model(:hardware) | ||||
|  | ||||
|   one_to_many :results | ||||
|  | ||||
|   def bench_results() | ||||
|     br = Hash.new() | ||||
|   def bench_results | ||||
|     br = {} | ||||
|  | ||||
|     self.results.each do |r| | ||||
|       unless br.key?(r.benchmark.name) | ||||
|         br[r.benchmark.name.to_s] = [] | ||||
|       end | ||||
|     @results.each do |r| | ||||
|       br[r.benchmark.name.to_s] = [] unless br.key?(r.benchmark.name) | ||||
|  | ||||
|       br[r.benchmark.name.to_s].push(r.avg_score) | ||||
|     end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user