mirror of
				https://gitea.invidious.io/iv-org/shard-ameba.git
				synced 2024-08-15 00:53:29 +00:00 
			
		
		
		
	Prefer Tuple over Array to format a message to reduce GC
This commit is contained in:
		
							parent
							
								
									fafe264d40
								
							
						
					
					
						commit
						7a4fcec5ce
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -58,7 +58,7 @@ module Ameba::Rule
 | 
			
		|||
        next if argument.ignored? || scope.references?(argument.variable)
 | 
			
		||||
 | 
			
		||||
        name_suggestion = scope.node.is_a?(Crystal::Block) ? '_' : "_#{argument.name}"
 | 
			
		||||
        source.error self, argument.location, MSG % [argument.name, name_suggestion]
 | 
			
		||||
        source.error self, argument.location, MSG % {argument.name, name_suggestion}
 | 
			
		||||
      end
 | 
			
		||||
    end
 | 
			
		||||
  end
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue