Skip to content

Commit c27dec0

Browse files
committed
Clean syntax
1 parent b15fbfa commit c27dec0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/Macros/Access.swift

-4
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ public struct Access: AccessorMacro {
3737
guard let binding = declaration.as(VariableDeclSyntax.self)?.bindings.first,
3838
let identifier = binding.pattern.as(IdentifierPatternSyntax.self)?.identifier.text,
3939
binding.accessor == nil else { return [] }
40-
var defaultValue = ""
41-
if let value = binding.initializer?.value {
42-
defaultValue = " ?? \(value)"
43-
}
4440
let getAccessor: AccessorDeclSyntax =
4541
"""
4642
get {

0 commit comments

Comments
 (0)