Skip to content

Commit

Permalink
Update repeat.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
sundy-li authored Nov 26, 2021
1 parent 88bffea commit f5fda2e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/functions/src/scalars/strings/repeat.rs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ impl fmt::Display for RepeatFunction {
}
}

#[inline]
fn repeat(string: Option<impl AsRef<[u8]>>, times: Option<u64>) -> Result<Option<Vec<u8>>> {
if let (Some(string), Some(times)) = (string, times) {
if times > MAX_REPEAT_TIMES {
Expand Down

0 comments on commit f5fda2e

Please sign in to comment.