1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37: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:
Stefan Holderbach 2023-09-26 18:52:49 +02:00 committed by GitHub
parent 9ceac61989
commit 6947014306
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 40 additions and 40 deletions

View file

@ -43,7 +43,7 @@ export-env {
$env.config = ( $env.config | upsert hooks.env_change.PWD { |config|
let o = ($config | get -i hooks.env_change.PWD)
let val = (nvim_tcd)
if $o == $nothing {
if $o == null {
$val
} else {
$o | append $val