mirror of
				https://github.com/go-gitea/gitea
				synced 2025-10-31 11:28:24 +00:00 
			
		
		
		
	Simplify parameter types (#18006)
Remove repeated type declarations in function definitions.
This commit is contained in:
		| @@ -263,7 +263,7 @@ func sshConnectionFailed(conn net.Conn, err error) { | ||||
| } | ||||
|  | ||||
| // Listen starts a SSH server listens on given port. | ||||
| func Listen(host string, port int, ciphers []string, keyExchanges []string, macs []string) { | ||||
| func Listen(host string, port int, ciphers, keyExchanges, macs []string) { | ||||
| 	srv := ssh.Server{ | ||||
| 		Addr:             net.JoinHostPort(host, strconv.Itoa(port)), | ||||
| 		PublicKeyHandler: publicKeyHandler, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user