mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-08-01 22:57:46 +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
|
@ -55,7 +55,7 @@ def gen_keywords_alphabetically [] {
|
|||
if ($cmd | str starts-with $alpha) {
|
||||
$cmd
|
||||
} else {
|
||||
$nothing
|
||||
null
|
||||
}
|
||||
} | str join '|')
|
||||
if ($letter_cmds | str trim | str length) > 0 {
|
||||
|
@ -87,7 +87,7 @@ def gen_sub_keywords_alphabetically [] {
|
|||
let parts = ($cmd | split row ' ')
|
||||
$'($parts.0)\\s($parts.1)'
|
||||
} else {
|
||||
$nothing
|
||||
null
|
||||
}
|
||||
} | str join '|')
|
||||
if ($letter_cmds | str trim | str length) > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue