Skip to content

Commit d2e21b0

Browse files
authored
fix: prevent whitespaces on added lines (#22)
The converter adds whitespaces at the end of `identifier`, `jsName` and `pluginMethods` blocks, this PR removes them as they make lint command to fail.
1 parent 3419a04 commit d2e21b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/CapacitorPluginSyntaxTools/CapacitorPluginSyntax.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ struct CapacitorPluginSyntax {
6969
modifiers: DeclModifierListSyntax(arrayLiteral: declPublicModifier),
7070
bindingSpecifier: .keyword(.let),
7171
bindings: PatternBindingListSyntax(arrayLiteral: patternBinding),
72-
trailingTrivia: .space)
72+
trailingTrivia: .none)
7373

7474
return indentifierDecl
7575
}
@@ -109,7 +109,7 @@ struct CapacitorPluginSyntax {
109109
modifiers: DeclModifierListSyntax(arrayLiteral: declPublicModifier),
110110
bindingSpecifier: .keyword(.let),
111111
bindings: PatternBindingListSyntax(arrayLiteral: patternBinding),
112-
trailingTrivia: .space)
112+
trailingTrivia: .none)
113113

114114
return indentifierDecl
115115
}

0 commit comments

Comments
 (0)