Skip to content

Commit ec2a974

Browse files
committed
Use empty tuple for early Void return statements.
1 parent e887452 commit ec2a974

36 files changed

+58
-58
lines changed

out/traits/BindingsType.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ extension Bindings {
200200
internal func free() {
201201

202202
// TODO: figure out something smarter
203-
return // the semicolon is necessary because Swift is whitespace-agnostic
203+
return () // the empty tuple (aka Void) is necessary because Swift is whitespace-agnostic
204204

205205
Bindings.print(
206206
"Error: BindingsType::free MUST be overridden! Offending class: \(String(describing: self)). Aborting.",

out/traits/BroadcasterInterface.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ extension Bindings {
137137
internal func free() {
138138

139139
// TODO: figure out something smarter
140-
return // the semicolon is necessary because Swift is whitespace-agnostic
140+
return () // the empty tuple (aka Void) is necessary because Swift is whitespace-agnostic
141141

142142
Bindings.print(
143143
"Error: BroadcasterInterface::free MUST be overridden! Offending class: \(String(describing: self)). Aborting.",

out/traits/ChannelMessageHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -998,7 +998,7 @@ extension Bindings {
998998
internal func free() {
999999

10001000
// TODO: figure out something smarter
1001-
return // the semicolon is necessary because Swift is whitespace-agnostic
1001+
return () // the empty tuple (aka Void) is necessary because Swift is whitespace-agnostic
10021002

10031003
Bindings.print(
10041004
"Error: ChannelMessageHandler::free MUST be overridden! Offending class: \(String(describing: self)). Aborting.",

out/traits/ChannelSigner.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -315,7 +315,7 @@ extension Bindings {
315315
internal func free() {
316316

317317
// TODO: figure out something smarter
318-
return // the semicolon is necessary because Swift is whitespace-agnostic
318+
return () // the empty tuple (aka Void) is necessary because Swift is whitespace-agnostic
319319

320320
Bindings.print(
321321
"Error: ChannelSigner::free MUST be overridden! Offending class: \(String(describing: self)). Aborting.",

out/traits/Confirm.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ extension Bindings {
356356
internal func free() {
357357

358358
// TODO: figure out something smarter
359-
return // the semicolon is necessary because Swift is whitespace-agnostic
359+
return () // the empty tuple (aka Void) is necessary because Swift is whitespace-agnostic
360360

361361
Bindings.print(
362362
"Error: Confirm::free MUST be overridden! Offending class: \(String(describing: self)). Aborting.",

out/traits/CustomMessageHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ extension Bindings {
194194
internal func free() {
195195

196196
// TODO: figure out something smarter
197-
return // the semicolon is necessary because Swift is whitespace-agnostic
197+
return () // the empty tuple (aka Void) is necessary because Swift is whitespace-agnostic
198198

199199
Bindings.print(
200200
"Error: CustomMessageHandler::free MUST be overridden! Offending class: \(String(describing: self)). Aborting.",

out/traits/CustomMessageReader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ extension Bindings {
144144
internal func free() {
145145

146146
// TODO: figure out something smarter
147-
return // the semicolon is necessary because Swift is whitespace-agnostic
147+
return () // the empty tuple (aka Void) is necessary because Swift is whitespace-agnostic
148148

149149
Bindings.print(
150150
"Error: CustomMessageReader::free MUST be overridden! Offending class: \(String(describing: self)). Aborting.",

out/traits/CustomOnionMessageContents.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ extension Bindings {
167167
internal func free() {
168168

169169
// TODO: figure out something smarter
170-
return // the semicolon is necessary because Swift is whitespace-agnostic
170+
return () // the empty tuple (aka Void) is necessary because Swift is whitespace-agnostic
171171

172172
Bindings.print(
173173
"Error: CustomOnionMessageContents::free MUST be overridden! Offending class: \(String(describing: self)). Aborting.",

out/traits/CustomOnionMessageHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ extension Bindings {
194194
internal func free() {
195195

196196
// TODO: figure out something smarter
197-
return // the semicolon is necessary because Swift is whitespace-agnostic
197+
return () // the empty tuple (aka Void) is necessary because Swift is whitespace-agnostic
198198

199199
Bindings.print(
200200
"Error: CustomOnionMessageHandler::free MUST be overridden! Offending class: \(String(describing: self)). Aborting.",

out/traits/EcdsaChannelSigner.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ extension Bindings {
570570
internal func free() {
571571

572572
// TODO: figure out something smarter
573-
return // the semicolon is necessary because Swift is whitespace-agnostic
573+
return () // the empty tuple (aka Void) is necessary because Swift is whitespace-agnostic
574574

575575
Bindings.print(
576576
"Error: EcdsaChannelSigner::free MUST be overridden! Offending class: \(String(describing: self)). Aborting.",

0 commit comments

Comments
 (0)