Skip to content

Commit

Permalink
fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
shaopu1225 committed Oct 24, 2023
1 parent 1739c0f commit 8381a9a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 1 deletion.
Binary file added .DS_Store
Binary file not shown.
Binary file added crates/.DS_Store
Binary file not shown.
Binary file added crates/s3s-fs/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion crates/s3s-fs/src/s3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ impl S3 for FileSystem {

let start: u64 = parts[0].parse().map_err(|_| s3_error!(InvalidArgument))?;
let mut end = file_len - 1;
if parts[1].is_empty() {
if parts[1].is_empty().not() {
end = parts[1].parse().map_err(|_| s3_error!(InvalidArgument))?;
}
(start, end)
Expand Down

0 comments on commit 8381a9a

Please sign in to comment.