Skip to content

Commit

Permalink
fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
aspect committed Sep 20, 2023
1 parent 6e32ef4 commit 2ee7d7b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rpc/wrpc/client/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,7 @@ impl KaspaRpcClient {
location.protocol().map_err(|_| Error::AddressError("Unable to obtain window location protocol".to_string()))?;
if protocol == "http:" {
Ok("ws")
} else if protocol == "https:" {
Ok("wss")
} else if protocol == "chrome-extension:" {
} else if protocol == "https:" || protocol == "chrome-extension:" {
Ok("wss")
} else {
Err(Error::Custom(format!("Unsupported protocol: {}", protocol)))
Expand Down

0 comments on commit 2ee7d7b

Please sign in to comment.