@@ -10,7 +10,7 @@ def 'has-ref' [
1010 ref : string # The git ref to check
1111] {
1212 let parse = (git rev-parse -- verify - q $ref )
13- if ($parse | empty ? ) { false } else { true }
13+ if ($parse | is- empty ) { false } else { true }
1414}
1515
1616# Update issue contents for https://github.com/nushell/nushell.github.io/issues/261
@@ -46,7 +46,7 @@ def get-cell [
4646
4747 } else { # For existing docs
4848 let val = ($match | get $lng | get 0 )
49- if ($val | empty ? ) {
49+ if ($val | is- empty ) {
5050 $cellDefault
5151 # Handle data like: "c13a71d11@hustcer"
5252 } else if ($val | str contains ' @' ) {
@@ -86,7 +86,7 @@ def has-change [
8686 commit : string , # The ending commit id
8787] {
8888 let diff = (git diff $commit $' book/($name )' | str trim )
89- if ($diff | empty ? ) { $' (ansi g )No(ansi reset )' } else { $' (ansi r )Yes(ansi reset )' }
89+ if ($diff | is- empty ) { $' (ansi g )No(ansi reset )' } else { $' (ansi r )Yes(ansi reset )' }
9090}
9191
9292def check-outdated-translation [
@@ -96,7 +96,7 @@ def check-outdated-translation [
9696 let locale = if ($lng in $columns ) { $columns | get $lng } else { $lng }
9797 open $META_FILE | select name $locale | insert outdated { |it |
9898 let val = ($it | get $locale )
99- if ($val | empty ? ) || $val == ' -' {
99+ if ($val | is- empty ) || $val == ' -' {
100100 ' -'
101101 # Handle data like: "c13a71d11@hustcer"
102102 } else if ($val | str contains ' @' ) {
@@ -128,7 +128,7 @@ def main [
128128 } else if $task == ' update' {
129129 update-i18n-status
130130 } else if $task == ' outdated' {
131- if ($lng | empty ? ) {
131+ if ($lng | is- empty ) {
132132 $' (ansi r )A locale code required, available locales: ($locales ), Please try again!(ansi reset )(char nl )'
133133 exit -- now
134134 }
0 commit comments