Skip to content

Commit d1a4b05

Browse files
committed
refactor!: Rename makeMaybe to makeIfEnabled to make it more explicit
1 parent 6ac04d5 commit d1a4b05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ssl-config/src/main/scala/com/avast/sst/ssl/SslContextModule.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ object SslContextModule {
3737
*
3838
* @param withReference Whether we should use reference config of "ssl-config" library as well.
3939
*/
40-
def makeMaybe[F[_]: Sync](config: Config, withReference: Boolean = true): F[Option[SSLContext]] = {
40+
def makeIfEnabled[F[_]: Sync](config: Config, withReference: Boolean = true): F[Option[SSLContext]] = {
4141
if (config.hasPath(SslContextEnabledKey) && config.getBoolean(SslContextEnabledKey)) {
4242
make(config, withReference).map(Some(_))
4343
} else {

0 commit comments

Comments
 (0)