mirror of
https://github.com/vlang/v.git
synced 2025-09-14 06:52:36 +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
|
@ -100,7 +100,7 @@ fn (mut parser Parser) generate_tag() {
|
|||
if parser.lexical_attributes.open_tag {
|
||||
return
|
||||
}
|
||||
if parser.lexical_attributes.current_tag.name.len > 0
|
||||
if parser.lexical_attributes.current_tag.name != ''
|
||||
|| parser.lexical_attributes.current_tag.content.len > 0 {
|
||||
parser.tags << parser.lexical_attributes.current_tag
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue