Skip to content

Commit cdb99e1

Browse files
committed
wip
1 parent 70ce95f commit cdb99e1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

Sources/StructuredQueriesMacros/TableMacro.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,6 @@ extension TableMacro: ExtensionMacro {
438438

439439
if !isGenerated {
440440
if let primaryKey, primaryKey.identifier == identifier {
441-
var hasColumnAttribute = false
442441
var property = property
443442
for attributeIndex in property.attributes.indices {
444443
guard
@@ -448,7 +447,6 @@ extension TableMacro: ExtensionMacro {
448447
.text,
449448
["Column", "Columns"].contains(attributeName)
450449
else { continue }
451-
hasColumnAttribute = true
452450
var hasPrimaryKeyArgument = false
453451
var arguments: LabeledExprListSyntax = []
454452
if case .argumentList(let list) = attribute.arguments { arguments = list }
@@ -1080,7 +1078,6 @@ extension TableMacro: MemberMacro {
10801078
if !isGenerated {
10811079
writableColumns.append(identifier)
10821080
if let primaryKey, primaryKey.identifier == identifier {
1083-
var hasColumnAttribute = false
10841081
var property = property
10851082
for attributeIndex in property.attributes.indices {
10861083
guard
@@ -1090,7 +1087,6 @@ extension TableMacro: MemberMacro {
10901087
.text,
10911088
["Column", "Columns"].contains(attributeName)
10921089
else { continue }
1093-
hasColumnAttribute = true
10941090
var hasPrimaryKeyArgument = false
10951091
var arguments: LabeledExprListSyntax = []
10961092
if case .argumentList(let list) = attribute.arguments { arguments = list }

0 commit comments

Comments
 (0)