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:
parent
9ceac61989
commit
6947014306
19 changed files with 40 additions and 40 deletions
|
@ -167,8 +167,8 @@ export def get_weather [
|
|||
] {
|
||||
let token = "85a4e3c55b73909f42c6a23ec35b7147"
|
||||
|
||||
let is_loc_empty = ($locIdx == $nothing)
|
||||
let is_units_empty = ($units == $nothing)
|
||||
let is_loc_empty = ($locIdx == null)
|
||||
let is_units_empty = ($units == null)
|
||||
|
||||
let no_loc_no_unit = ($is_loc_empty == true and $is_units_empty == true)
|
||||
let no_loc_with_unit = ($is_loc_empty == true and $is_units_empty == false)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue