Skip to content

Commit 7a3ce52

Browse files
committed
Fromat the code to simplify return statements
1 parent 4e4a838 commit 7a3ce52

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎Samples/SwiftJavaExtractFFMSampleApp/Sources/MySwiftLibrary/MySwiftLibrary.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public func globalCallMeRunnable(run: () -> Void) {
4949
}
5050

5151
public func globalCallMeBooleanSupplier(run: () -> Bool) -> Bool {
52-
return run()
52+
run()
5353
}
5454

5555
public func globalReceiveRawBuffer(buf: UnsafeRawBufferPointer) -> Int {

‎Samples/SwiftJavaExtractJNISampleApp/Sources/MySwiftLibrary/Closures.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public func closureWithInt(input: Int64, closure: (Int64) -> Int64) -> Int64 {
2121
}
2222

2323
public func globalCallMeBooleanSupplier(run: () -> Bool) -> Bool {
24-
return run()
24+
run()
2525
}
2626

2727
public func closureMultipleArguments(

‎Sources/ExampleSwiftLibrary/MySwiftLibrary.swift‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public func globalCallMeRunnable(run: () -> Void) {
4444
}
4545

4646
public func globalCallMeBooleanSupplier(run: () -> Bool) -> Bool {
47-
return run()
47+
run()
4848
}
4949

5050
public func globalReceiveRawBuffer(buf: UnsafeRawBufferPointer) -> Int {

0 commit comments

Comments
 (0)