mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-02 23:27:45 +00:00
Replace use of $nothing
with null
(#621)
`$nothing` will be deprecated in nu 0.86 This accompanies - https://github.com/nushell/nushell/pull/10478
This commit is contained in:
parent
9ceac61989
commit
6947014306
19 changed files with 40 additions and 40 deletions
|
@ -29,7 +29,7 @@ export def "path check-sub" [
|
|||
|
||||
(ls -a $folder
|
||||
| where (
|
||||
($type == $nothing or $it.type in $type)
|
||||
($type == null or $it.type in $type)
|
||||
and ($it.name | path basename) == $subfolder
|
||||
)
|
||||
| length
|
||||
|
@ -53,7 +53,7 @@ export def "path find-sub" [
|
|||
)
|
||||
);
|
||||
|
||||
if ($paths != $nothing) and ($paths | length) > 0 {
|
||||
if ($paths != null) and ($paths | length) > 0 {
|
||||
[ ($paths | first), $subfolder ] | path join
|
||||
} else {[]}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue