Skip to content

Commit

Permalink
chore: fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
bojand committed Feb 2, 2025
1 parent bbd3ba2 commit 733023f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/matchers/doc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -131,11 +131,11 @@ fn ole2(buf: &[u8]) -> Option<DocType> {
}

fn check_msooml(buf: &[u8], offset: usize) -> Option<DocType> {
if compare_bytes(buf, &[b'w', b'o', b'r', b'd', b'/'], offset) {
if compare_bytes(buf, b"word/", offset) {
Some(DocType::DOCX)
} else if compare_bytes(buf, &[b'p', b'p', b't', b'/'], offset) {
} else if compare_bytes(buf, b"ppt/", offset) {
Some(DocType::PPTX)
} else if compare_bytes(buf, &[b'x', b'l', b'/'], offset) {
} else if compare_bytes(buf, b"xl/", offset) {
Some(DocType::XLSX)
} else {
None
Expand Down

0 comments on commit 733023f

Please sign in to comment.