mirror of
https://github.com/Myzel394/config-lsp.git
synced 2025-06-18 15:05:28 +02:00
Merge branch 'main' into improve-wireguard
This commit is contained in:
commit
5de2711b03
@ -47,16 +47,16 @@ func (v PathValue) GetTypeDescription() []string {
|
||||
}
|
||||
|
||||
func (v PathValue) DeprecatedCheckIsValid(value string) []*InvalidValue {
|
||||
if v.RequiredType == PathTypeExistenceOptional {
|
||||
return nil
|
||||
}
|
||||
|
||||
if !utils.DoesPathExist(value) {
|
||||
if v.RequiredType == PathTypeExistenceOptional {
|
||||
return nil
|
||||
} else {
|
||||
return []*InvalidValue{{
|
||||
Err: PathDoesNotExistError{},
|
||||
Start: 0,
|
||||
End: uint32(len(value)),
|
||||
}}
|
||||
}
|
||||
return []*InvalidValue{{
|
||||
Err: PathDoesNotExistError{},
|
||||
Start: 0,
|
||||
End: uint32(len(value)),
|
||||
}}
|
||||
}
|
||||
|
||||
isValid := false
|
||||
|
Loading…
x
Reference in New Issue
Block a user