Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Nov 7, 2022
1 parent 0dc4c6f commit 910d665
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions git-transport/src/client/blocking_io/http/mod.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
use bstr::ByteSlice;
use std::{
any::Any,
borrow::Cow,
Expand Down Expand Up @@ -235,7 +234,7 @@ impl<H: Http> client::Transport for Transport<H> {
.ok_or(client::Error::ExpectedLine("capabilities, version or service"))???;
let line = line_.as_text().ok_or(client::Error::ExpectedLine("text"))?;

if let Some(announced_service) = line.as_bstr().trim().strip_prefix(b"# service=") {
if let Some(announced_service) = line.as_bstr().strip_prefix(b"# service=") {
if announced_service != service.as_str().as_bytes() {
return Err(client::Error::Http(Error::Detail {
description: format!(
Expand Down

0 comments on commit 910d665

Please sign in to comment.