Purge of unwrap version 2
This commit is contained in:
parent
72aeaef5f3
commit
cfbeb66a63
@ -2051,7 +2051,7 @@ fn resource_ops_supported(config: &Config, kind: ResourceOperationKind) -> anyho
|
|||||||
.as_ref()
|
.as_ref()
|
||||||
})();
|
})();
|
||||||
|
|
||||||
if resops.is_none() || !resops.unwrap().contains(&kind) {
|
if !matches!(resops, Some(resops) if resops.contains(&kind)) {
|
||||||
return Err(LspError::new(
|
return Err(LspError::new(
|
||||||
ErrorCode::RequestFailed as i32,
|
ErrorCode::RequestFailed as i32,
|
||||||
format!(
|
format!(
|
||||||
|
Loading…
Reference in New Issue
Block a user