Skip to content

Commit 5694a0c

Browse files
Simplifies condition
Co-authored-by: Gaël Renoux <[email protected]>
1 parent d375bc2 commit 5694a0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/scala-api/src/main/scala-3/org/apache/flinkx/api/LowPrioImplicits.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ private[api] trait LowPrioImplicits extends TaggedDerivation[TypeInformation]:
5757
): Typeclass[T] =
5858
val useCache = typeTag.isCachable
5959
val cacheKey = typeTag.toString
60-
Option(useCache).filter(_ == true).flatMap(_ => cache.get(cacheKey)) match
60+
(if useCache then cache.get(cacheKey) else None) match
6161
case Some(cached) =>
6262
cached.asInstanceOf[TypeInformation[T]]
6363

0 commit comments

Comments
 (0)