Skip to content

Commit 5275926

Browse files
committed
Fix no-negated-condition lint errors in namespace prefix logic
https://claude.ai/code/session_01HfazKmPqWt1wtBF3ZUJ53P
1 parent 0be4d0b commit 5275926

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/lib/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,12 +188,12 @@ function print_simple_selector(
188188
is_first: boolean = false,
189189
): string {
190190
if (is_type_selector(node)) {
191-
let prefix = node.namespace !== null ? node.namespace.toLowerCase() + '|' : ''
191+
let prefix = node.namespace === null ? '' : node.namespace.toLowerCase() + '|'
192192
return prefix + node.name.toLowerCase()
193193
}
194194

195195
if (is_universal_selector(node)) {
196-
let prefix = node.namespace !== null ? node.namespace.toLowerCase() + '|' : ''
196+
let prefix = node.namespace === null ? '' : node.namespace.toLowerCase() + '|'
197197
return prefix + '*'
198198
}
199199

0 commit comments

Comments
 (0)