Skip to content

Commit

Permalink
Clean syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ShenghaiWang committed Jul 4, 2023
1 parent b15fbfa commit c27dec0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions Sources/Macros/Access.swift
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,6 @@ public struct Access: AccessorMacro {
guard let binding = declaration.as(VariableDeclSyntax.self)?.bindings.first,
let identifier = binding.pattern.as(IdentifierPatternSyntax.self)?.identifier.text,
binding.accessor == nil else { return [] }
var defaultValue = ""
if let value = binding.initializer?.value {
defaultValue = " ?? \(value)"
}
let getAccessor: AccessorDeclSyntax =
"""
get {
Expand Down

0 comments on commit c27dec0

Please sign in to comment.