diff options
author | Vladimir Shushlin <v.shushlin@gmail.com> | 2022-02-22 12:42:43 +0300 |
---|---|---|
committer | Vladimir Shushlin <v.shushlin@gmail.com> | 2022-02-22 13:02:58 +0300 |
commit | dec4b09ac1f6fdf98487d4db61055c1e64358c15 (patch) | |
tree | 27b23651249094f96157d247353be08629f04e27 /app.go | |
parent | 58581c5a2ff3e95e1dc3acc69913412477a37557 (diff) |
refactor: review fixes
Diffstat (limited to 'app.go')
-rw-r--r-- | app.go | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -84,9 +84,8 @@ func (a *theApp) getTLSConfig() (*cryptotls.Config, error) { return a.tlsConfig, nil } - tlsConfig, err := tls.GetTLSConfig(a.config, a.GetCertificate) - - a.tlsConfig = tlsConfig + var err error + a.tlsConfig, err = tls.GetTLSConfig(a.config, a.GetCertificate) return a.tlsConfig, err } |