浏览代码

suppress lint warning

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
Nicola Murino 1 年之前
父节点
当前提交
1c579d73f8
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      internal/sftpd/server.go

+ 1 - 1
internal/sftpd/server.go

@@ -993,7 +993,7 @@ func (c *Configuration) getHostKeyAlgorithms(keyFormat string) []string {
 }
 
 // If no host keys are defined we try to use or generate the default ones.
-func (c *Configuration) checkAndLoadHostKeys(configDir string, serverConfig *ssh.ServerConfig) error {
+func (c *Configuration) checkAndLoadHostKeys(configDir string, serverConfig *ssh.ServerConfig) error { //nolint:gocyclo
 	if err := c.checkHostKeyAutoGeneration(configDir); err != nil {
 		return err
 	}