Skip to content

Commit

Permalink
fix clippy.
Browse files Browse the repository at this point in the history
  • Loading branch information
youngsofun committed Nov 14, 2022
1 parent 3438374 commit b5211d2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/query/formats/src/field_decoder/values.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,9 @@ impl FieldDecoderRowBased for FieldDecoderValues {
) -> Result<()> {
if reader.eof() {
column.de_default();
} else if raw && self.match_bytes(reader, b"NULL") || self.match_bytes(reader, b"null") {
column.de_default();
return Ok(());
} else if !raw && reader.ignore_bytes(b"NULL") || reader.ignore_bytes(b"null") {
} else if (raw && (self.match_bytes(reader, b"NULL") || self.match_bytes(reader, b"null")))
|| (!raw && (reader.ignore_bytes(b"NULL") || reader.ignore_bytes(b"null")))
{
column.de_default();
return Ok(());
} else {
Expand Down

0 comments on commit b5211d2

Please sign in to comment.