Skip to content

Commit 99af0af

Browse files
committed
cleanup
1 parent 8e62931 commit 99af0af

1 file changed

Lines changed: 6 additions & 11 deletions

File tree

  • firebase-firestore/src/main/java/com/google/firebase/firestore/pipeline

firebase-firestore/src/main/java/com/google/firebase/firestore/pipeline/expressions.kt

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1934,8 +1934,7 @@ abstract class Expression internal constructor() {
19341934
* @return A new [Expression] representing the type operation.
19351935
*/
19361936
@JvmStatic
1937-
fun type(fieldName: String): Expression =
1938-
FunctionExpression("type", notImplemented, field(fieldName))
1937+
fun type(fieldName: String): Expression = FunctionExpression("type", notImplemented, fieldName)
19391938

19401939
/**
19411940
* Creates an expression that checks if the result of an expression is of the given type.
@@ -1951,10 +1950,8 @@ abstract class Expression internal constructor() {
19511950
*
19521951
* @param expr The expression to check the type of.
19531952
* @param type The type to check for.
1954-
* @return A new [BooleanExpression] that evaluates to true if the expression's result is of
1955-
* ```
1956-
* the given type, false otherwise.
1957-
* ```
1953+
* @return A new [BooleanExpression] that evaluates to true if the expression's result is of the
1954+
* given type, false otherwise.
19581955
*/
19591956
@JvmStatic
19601957
fun isType(expr: Expression, type: String): BooleanExpression =
@@ -1974,14 +1971,12 @@ abstract class Expression internal constructor() {
19741971
*
19751972
* @param fieldName The name of the field to check the type of.
19761973
* @param type The type to check for.
1977-
* @return A new [BooleanExpression] that evaluates to true if the expression's result is of
1978-
* ```
1979-
* the given type, false otherwise.
1980-
* ```
1974+
* @return A new [BooleanExpression] that evaluates to true if the expression's result is of the
1975+
* given type, false otherwise.
19811976
*/
19821977
@JvmStatic
19831978
fun isType(fieldName: String, type: String): BooleanExpression =
1984-
BooleanFunctionExpression("is_type", notImplemented, field(fieldName), constant(type))
1979+
BooleanFunctionExpression("is_type", notImplemented, fieldName, constant(type))
19851980

19861981
/**
19871982
* Creates an expression that calculates the length of a string, array, map, vector, or blob

0 commit comments

Comments
 (0)