Skip to content

Commit e9b5a98

Browse files
committed
Fixed code style
1 parent 3b2a431 commit e9b5a98

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

sql/core/src/main/scala/org/apache/spark/sql/SQLContext.scala

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1106,11 +1106,14 @@ object SQLContext {
11061106
method -> createConverter(method.getReturnType, fieldType)
11071107
}
11081108
value =>
1109-
if (value == null) null
1110-
else new GenericInternalRow(
1111-
methodConverters.map { case (method, converter) =>
1112-
converter(method.invoke(value))
1113-
})
1109+
if (value == null) {
1110+
null
1111+
} else {
1112+
new GenericInternalRow(
1113+
methodConverters.map { case (method, converter) =>
1114+
converter(method.invoke(value))
1115+
})
1116+
}
11141117
}
11151118
def createConverter(cls: Class[_], dataType: DataType): Any => Any = dataType match {
11161119
case struct: StructType => createStructConverter(cls, struct.map(_.dataType))

0 commit comments

Comments
 (0)