Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
veeso committed May 20, 2024
1 parent cae963a commit f0d0f72
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion suppaftp/src/async_ftp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ where
// read body at line 1
let response_str = String::from_utf8_lossy(&response.body).to_string();
match response_str.lines().nth(1) {
Some(line) if line.is_empty() => Err(FtpError::BadResponse),
Some("") => Err(FtpError::BadResponse),
Some(line) => Ok(line.trim().to_string()),
None => Err(FtpError::BadResponse),
}
Expand Down
2 changes: 1 addition & 1 deletion suppaftp/src/sync_ftp/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ where
// read body at line 1
let response_str = String::from_utf8_lossy(&response.body).to_string();
match response_str.lines().nth(1) {
Some(line) if line.is_empty() => Err(FtpError::BadResponse),
Some("") => Err(FtpError::BadResponse),
Some(line) => Ok(line.trim().to_string()),
None => Err(FtpError::BadResponse),
}
Expand Down

0 comments on commit f0d0f72

Please sign in to comment.