Skip to content

Commit c7e4b8e

Browse files
authored
chore: remove redundant word in comment (#15942)
Signed-off-by: pengqiseven <[email protected]>
1 parent 60b22ab commit c7e4b8e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

packages/svelte/src/compiler/phases/2-analyze/visitors/Attribute.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ function get_delegated_event(event_name, handler, context) {
211211

212212
if (
213213
binding !== null &&
214-
// Bail out if the the binding is a rest param
214+
// Bail out if the binding is a rest param
215215
(binding.declaration_kind === 'rest_param' ||
216216
// Bail out if we reference anything from the EachBlock (for now) that mutates in non-runes mode,
217217
(((!context.state.analysis.runes && binding.kind === 'each') ||

packages/svelte/src/compiler/phases/3-transform/client/visitors/RegularElement.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -564,7 +564,7 @@ export function build_style_directives_object(style_directives, context) {
564564

565565
/**
566566
* Serializes an assignment to an element property by adding relevant statements to either only
567-
* the init or the the init and update arrays, depending on whether or not the value is dynamic.
567+
* the init or the init and update arrays, depending on whether or not the value is dynamic.
568568
* Resulting code for static looks something like this:
569569
* ```js
570570
* element.property = value;

packages/svelte/src/internal/client/dom/elements/class.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ export function set_class(dom, is_html, value, hash, prev_classes, next_classes)
2424
if (!hydrating || next_class_name !== dom.getAttribute('class')) {
2525
// Removing the attribute when the value is only an empty string causes
2626
// performance issues vs simply making the className an empty string. So
27-
// we should only remove the class if the the value is nullish
27+
// we should only remove the class if the value is nullish
2828
// and there no hash/directives :
2929
if (next_class_name == null) {
3030
dom.removeAttribute('class');

0 commit comments

Comments
 (0)