mirror of
				https://github.com/mgechev/revive.git
				synced 2025-10-30 23:37:49 +02:00 
			
		
		
		
	fix: add missing defer when unlocking mutex (#879)
This commit is contained in:
		| @@ -19,7 +19,7 @@ type FunctionLength struct { | ||||
|  | ||||
| func (r *FunctionLength) configure(arguments lint.Arguments) { | ||||
| 	r.Lock() | ||||
| 	r.Unlock() | ||||
| 	defer r.Unlock() | ||||
| 	if !r.configured { | ||||
| 		maxStmt, maxLines := r.parseArguments(arguments) | ||||
| 		r.maxStmt = int(maxStmt) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user