@@ -10,7 +10,7 @@ def 'has-ref' [
10
10
ref : string # The git ref to check
11
11
] {
12
12
let parse = (git rev-parse -- verify - q $ref )
13
- if ($parse | empty ? ) { false } else { true }
13
+ if ($parse | is- empty ) { false } else { true }
14
14
}
15
15
16
16
# Update issue contents for https://github.com/nushell/nushell.github.io/issues/261
@@ -46,7 +46,7 @@ def get-cell [
46
46
47
47
} else { # For existing docs
48
48
let val = ($match | get $lng | get 0 )
49
- if ($val | empty ? ) {
49
+ if ($val | is- empty ) {
50
50
$cellDefault
51
51
# Handle data like: "c13a71d11@hustcer"
52
52
} else if ($val | str contains ' @' ) {
@@ -86,7 +86,7 @@ def has-change [
86
86
commit : string , # The ending commit id
87
87
] {
88
88
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 )' }
90
90
}
91
91
92
92
def check-outdated-translation [
@@ -96,7 +96,7 @@ def check-outdated-translation [
96
96
let locale = if ($lng in $columns ) { $columns | get $lng } else { $lng }
97
97
open $META_FILE | select name $locale | insert outdated { |it |
98
98
let val = ($it | get $locale )
99
- if ($val | empty ? ) || $val == ' -' {
99
+ if ($val | is- empty ) || $val == ' -' {
100
100
' -'
101
101
# Handle data like: "c13a71d11@hustcer"
102
102
} else if ($val | str contains ' @' ) {
@@ -128,7 +128,7 @@ def main [
128
128
} else if $task == ' update' {
129
129
update-i18n-status
130
130
} else if $task == ' outdated' {
131
- if ($lng | empty ? ) {
131
+ if ($lng | is- empty ) {
132
132
$' (ansi r )A locale code required, available locales: ($locales ), Please try again!(ansi reset )(char nl )'
133
133
exit -- now
134
134
}
0 commit comments