Skip to content

Commit

Permalink
Revert "Revert one of the Windows-specific changes because causing a …
Browse files Browse the repository at this point in the history
…test failure"

This reverts commit 144e1e5.
  • Loading branch information
trask committed Dec 1, 2024
1 parent d8288f2 commit d58171f
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lychee-lib/src/types/input.rs
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,7 @@ impl Input {
Ok(url) if url.scheme() == "http" || url.scheme() == "https" => {
InputSource::RemoteUrl(Box::new(url))
}
Ok(_) => {
// URL parsed successfully, but it's not http or https
return Err(ErrorKind::InvalidFile(PathBuf::from(value)));
}
_ => {
Ok(_) | _ => {
// this seems to be the only way to determine if this is a glob pattern
let is_glob = glob::Pattern::escape(value) != value;

Expand Down

0 comments on commit d58171f

Please sign in to comment.