enableIfDSN

fun enableIfDSN(sentryDSN: String?)

Convenience function to enable and set the DSN, but only if the supplied DSN isn't null.

Intended for use with envOrNull.