mirror of
https://github.com/nushell/nushell.git
synced 2025-05-11 21:44:31 +02:00
Fix #15571: fix url enum variant size
This commit is contained in:
parent
f963df2350
commit
3a7439844f
@ -167,7 +167,7 @@ fn command(
|
||||
let hive_options = build_hive_options(plugin, call)?;
|
||||
|
||||
let uri = spanned_file.item.clone();
|
||||
let data_source = if resource.cloud_options.is_none() {
|
||||
let data_source = if resource.cloud_options.is_some() {
|
||||
Url::from_str(&uri)
|
||||
.map(|url| DataSource::Url(url.into()))
|
||||
.unwrap_or_else(|_| DataSource::FilePath(uri.into()))
|
||||
|
Loading…
Reference in New Issue
Block a user