mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin, compiler: replace isnil(x) calls with x == unsafe { nil }
(a little faster without -prod) (#15759)
This commit is contained in:
@@ -10,5 +10,5 @@ pub:
|
||||
}
|
||||
|
||||
pub fn (i Image) is_empty() bool {
|
||||
return isnil(i.obj)
|
||||
return i.obj == unsafe { nil }
|
||||
}
|
||||
|
Reference in New Issue
Block a user