mirror of
				https://github.com/mgechev/revive.git
				synced 2025-10-30 23:37:49 +02:00 
			
		
		
		
	fix: invalid rule name in error message (#627)
This commit is contained in:
		
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							8aab7c6042
						
					
				
				
					commit
					47a1cedde5
				
			| @@ -19,7 +19,7 @@ func (r *ArgumentsLimitRule) Apply(file *lint.File, arguments lint.Arguments) [] | ||||
|  | ||||
| 		total, ok := arguments[0].(int64) // Alt. non panicking version | ||||
| 		if !ok { | ||||
| 			panic(`invalid value passed as argument number to the "argument-list" rule`) | ||||
| 			panic(`invalid value passed as argument number to the "argument-limit" rule`) | ||||
| 		} | ||||
| 		r.total = int(total) | ||||
| 	} | ||||
|   | ||||
		Reference in New Issue
	
	Block a user