Skip to content

Commit

Permalink
directly return newClass on falsy value
Browse files Browse the repository at this point in the history
  • Loading branch information
noscripter committed Jan 16, 2024
1 parent 496e037 commit c0bcc34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bind.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,5 @@ function appendClass (value, newClass) {
return value + ' ' + newClass;
}

return value + newClass;
return newClass;
}

0 comments on commit c0bcc34

Please sign in to comment.