Skip to content

Commit d375bc2

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

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
@@ -28,7 +28,7 @@ private[api] trait LowPrioImplicits extends TaggedDerivation[TypeInformation]:
2828
): Typeclass[T] =
2929
val useCache = typeTag.isCachable
3030
val cacheKey = typeTag.toString
31-
Option(useCache).filter(_ == true).flatMap(_ => cache.get(cacheKey)) match
31+
(if useCache then cache.get(cacheKey) else None) match
3232
case Some(cached) =>
3333
cached.asInstanceOf[TypeInformation[T]]
3434

0 commit comments

Comments
 (0)