Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Skyenought committed Nov 22, 2023
1 parent 6a2943e commit 9e087e5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/protocol/uri_unix.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ func addLeadingSlash(dst, src []byte) []byte {
func checkSchemeWhenCharIsColon(i int, rawURL []byte) (scheme, path []byte) {
if i == 0 {
hlog.Errorf("error happened when try to parse the rawURL(%s): missing protocol scheme", rawURL)
return nil, nil
return

Check warning on line 61 in pkg/protocol/uri_unix.go

View check run for this annotation

Codecov / codecov/patch

pkg/protocol/uri_unix.go#L60-L61

Added lines #L60 - L61 were not covered by tests
}
return rawURL[:i], rawURL[i+1:]
}
1 change: 1 addition & 0 deletions pkg/protocol/uri_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,5 @@ func checkSchemeWhenCharIsColon(i int, rawURL []byte) (scheme, path []byte) {
}
return nil, rawURL
}
return
}

0 comments on commit 9e087e5

Please sign in to comment.