diff --git a/src/binder/create_function.rs b/src/binder/create_function.rs index a6293a9a..c0195348 100644 --- a/src/binder/create_function.rs +++ b/src/binder/create_function.rs @@ -86,8 +86,7 @@ impl Binder { if params.return_.is_none() { return Err(BindError::BindFunctionError( "AS or RETURN must be specified".to_string(), - ) - .into()); + )); } // Otherwise this is a return expression // Note: this is a current work around, and we are assuming return sql udf