config/ssl.go
func (c *SSLConfig) Finalize() {
	if c.Enabled == nil {
		c.Enabled = Bool(false ||
			StringPresent(c.Cert) ||
			StringPresent(c.CaCert) ||
			StringPresent(c.CaPath) ||
			StringPresent(c.Key) ||
			StringPresent(c.ServerName) ||
			BoolPresent(c.Verify))
	}

	if c.Cert == nil {
		c.Cert = String("")
	}

	if c.CaCert == nil {
		c.CaCert = String("")
	}

	if c.CaPath == nil {
		c.CaPath = String("")
	}

	if c.Key == nil {
		c.Key = String("")
	}

	if c.ServerName == nil {
		c.ServerName = String("")
	}

	if c.Verify == nil {
		c.Verify = Bool(DefaultSSLVerify)
	}
}
func (c *SSLConfig) Finalize() {
	if c.Enabled == nil {
		c.Enabled = Bool(false ||
			StringPresent(c.Cert) ||
			StringPresent(c.CaCert) ||
			StringPresent(c.CaPath) ||
			StringPresent(c.Key) ||
			StringPresent(c.ServerName) ||
			BoolPresent(c.Verify))
	}

	if c.Cert == nil {
		c.Cert = String("")
	}

	if c.CaCert == nil {
		c.CaCert = String("")
	}

	if c.CaPath == nil {
		c.CaPath = String("")
	}

	if c.Key == nil {
		c.Key = String("")
	}

	if c.ServerName == nil {
		c.ServerName = String("")
	}

	if c.Verify == nil {
		c.Verify = Bool(DefaultSSLVerify)
	}
}
func ( c * SSLConfig ) Finalize ( ) { if c . Enabled == nil { c . Enabled = Bool ( false || StringPresent ( c . Cert ) || StringPresent ( c . CaCert ) || StringPresent ( c . CaPath ) || StringPresent ( c . Key ) || StringPresent ( c . ServerName ) || BoolPresent ( c . Verify ) ) } if c . Cert == nil { c . Cert = String ( " " ) } if c . CaCert == nil { c . CaCert = String ( " " ) } if c . CaPath == nil { c . CaPath = String ( " " ) } if c . Key == nil { c . Key = String ( " " ) } if c . ServerName == nil { c . ServerName = String ( " " ) } if c . Verify == nil { c . Verify = Bool ( DefaultSSLVerify ) } }
// Finalize ensures there no nil pointers.
Finalize ensures there no nil pointers .