mirror of
https://github.com/vlang/v.git
synced 2025-09-13 14:32:26 +03:00
vlib: refactor empty string checks to use s == ''
or s != ''
, instead of s.len == 0
(#21300)
This commit is contained in:
parent
46be635072
commit
8aa9314a99
55 changed files with 95 additions and 96 deletions
|
@ -68,7 +68,7 @@ pub:
|
|||
fn new_dynamic_lib_loader(conf DynamicLibLoaderConfig) !&DynamicLibLoader {
|
||||
mut paths := []string{}
|
||||
|
||||
if conf.env_path.len > 0 {
|
||||
if conf.env_path != '' {
|
||||
if env_path := os.getenv_opt(conf.env_path) {
|
||||
paths << env_path.split(os.path_delimiter)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue