We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ac04d5 commit d1a4b05Copy full SHA for d1a4b05
ssl-config/src/main/scala/com/avast/sst/ssl/SslContextModule.scala
@@ -37,7 +37,7 @@ object SslContextModule {
37
*
38
* @param withReference Whether we should use reference config of "ssl-config" library as well.
39
*/
40
- def makeMaybe[F[_]: Sync](config: Config, withReference: Boolean = true): F[Option[SSLContext]] = {
+ def makeIfEnabled[F[_]: Sync](config: Config, withReference: Boolean = true): F[Option[SSLContext]] = {
41
if (config.hasPath(SslContextEnabledKey) && config.getBoolean(SslContextEnabledKey)) {
42
make(config, withReference).map(Some(_))
43
} else {
0 commit comments