mirror of
				https://github.com/jtesta/ssh-audit.git
				synced 2025-10-31 09:31:01 +01:00 
			
		
		
		
	Fix SonarQube python:S1871.
This commit is contained in:
		| @@ -1192,11 +1192,9 @@ class SSH(object):  # pylint: disable=too-few-public-methods | |||||||
| 					if ssh_prefix not in result: | 					if ssh_prefix not in result: | ||||||
| 						result[ssh_prefix] = [None, None, None] | 						result[ssh_prefix] = [None, None, None] | ||||||
| 					prev, push = result[ssh_prefix][i], False | 					prev, push = result[ssh_prefix][i], False | ||||||
| 					if prev is None: | 					if ((prev is None) or | ||||||
| 						push = True | 					    (prev < ssh_version and i == 0) or | ||||||
| 					elif i == 0 and prev < ssh_version: | 					    (prev > ssh_version and i > 0)): | ||||||
| 						push = True |  | ||||||
| 					elif i > 0 and prev > ssh_version: |  | ||||||
| 						push = True | 						push = True | ||||||
| 					if push: | 					if push: | ||||||
| 						result[ssh_prefix][i] = ssh_version | 						result[ssh_prefix][i] = ssh_version | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Andris Raugulis
					Andris Raugulis