mirror of
https://github.com/nushell/nushell.git
synced 2025-04-24 13:18:18 +02:00
Improve code quality
This commit is contained in:
parent
7480fcdf16
commit
2cee0b15eb
@ -105,7 +105,7 @@ impl<T: Completer> Completer for CustomCompletion<T> {
|
|||||||
}
|
}
|
||||||
let positional =
|
let positional =
|
||||||
options.get("positional").and_then(|val| val.as_bool().ok());
|
options.get("positional").and_then(|val| val.as_bool().ok());
|
||||||
if let Some(_positional) = positional {
|
if positional.is_some() {
|
||||||
log::warn!("Use of the positional option is deprecated. Use the substring match algorithm instead.");
|
log::warn!("Use of the positional option is deprecated. Use the substring match algorithm instead.");
|
||||||
}
|
}
|
||||||
if let Some(algorithm) = options
|
if let Some(algorithm) = options
|
||||||
|
Loading…
Reference in New Issue
Block a user