Skip to content

Commit d4eec7d

Browse files
committed
fix
1 parent 05c946b commit d4eec7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/jsonb/src/functions.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -860,7 +860,7 @@ pub fn parse_json_path(path: &[u8]) -> Result<Vec<JsonPath>, Error> {
860860
}
861861
let s = std::str::from_utf8(&path[prev_idx..idx - 1])?;
862862
let json_path = JsonPath::String(Cow::Borrowed(s));
863-
if json_paths.len() == 0 {
863+
if json_paths.is_empty() {
864864
json_paths.push(json_path);
865865
} else {
866866
return Err(Error::InvalidToken);

0 commit comments

Comments
 (0)