mirror of
https://github.com/denoland/deno.git
synced 2025-07-24 13:44:08 +00:00
fix(imports): fix panic on unsupported scheme (#5131)
This commit is contained in:
parent
dabe88f854
commit
0ba90c8c11
4 changed files with 18 additions and 1 deletions
|
@ -93,7 +93,7 @@ impl SourceFileFetcher {
|
|||
Ok(file_fetcher)
|
||||
}
|
||||
|
||||
fn check_if_supported_scheme(url: &Url) -> Result<(), ErrBox> {
|
||||
pub fn check_if_supported_scheme(url: &Url) -> Result<(), ErrBox> {
|
||||
if !SUPPORTED_URL_SCHEMES.contains(&url.scheme()) {
|
||||
return Err(
|
||||
OpError::other(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue