Skip to content

Commit b7c9bb8

Browse files
committed
refactor(attr): remove redundant String() cast
1 parent 9d55986 commit b7c9bb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/attr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function initializeAttrs(instance: HTMLElement, names?: Iterable<string>)
4141
const name = attrToAttributeName(key)
4242
let descriptor: PropertyDescriptor = {
4343
get(this: HTMLElement): string {
44-
return String(this.getAttribute(name) || '')
44+
return this.getAttribute(name) || ''
4545
},
4646
set(this: HTMLElement, newValue: string) {
4747
this.setAttribute(name, newValue || '')

0 commit comments

Comments
 (0)