Commit cb1e416
committed
[MINOR] Fix build warnings
### What changes were proposed in this pull request?
This PR aims to clean up build warnings.
### Why are the changes needed?
**BEFORE**
```
$ swift build | grep warning
/Users/dongjoon/APACHE/spark-connect-swift/Sources/SparkConnect/ArrowReader.swift:301:27: warning: 'as' test is always true
| `- warning: 'as' test is always true
/Users/dongjoon/APACHE/spark-connect-swift/Sources/SparkConnect/ArrowReader.swift:364:25: warning: 'as' test is always true
| `- warning: 'as' test is always true
/Users/dongjoon/APACHE/spark-connect-swift/Sources/SparkConnect/ArrowReader.swift:301:27: warning: 'as' test is always true
| `- warning: 'as' test is always true
/Users/dongjoon/APACHE/spark-connect-swift/Sources/SparkConnect/ArrowReader.swift:364:25: warning: 'as' test is always true
| `- warning: 'as' test is always true
/Users/dongjoon/APACHE/spark-connect-swift/Sources/SparkConnect/ArrowReader.swift:301:27: warning: 'as' test is always true
| `- warning: 'as' test is always true
/Users/dongjoon/APACHE/spark-connect-swift/Sources/SparkConnect/ArrowReader.swift:364:25: warning: 'as' test is always true
| `- warning: 'as' test is always true
```
**AFTER**
```
$ swift build | grep warning
```
### Does this PR introduce _any_ user-facing change?
A code cleanup.
### How was this patch tested?
Manual review.
### Was this patch authored or co-authored using generative AI tooling?
No.
Closes #31 from dongjoon-hyun/minor.
Authored-by: Dongjoon Hyun <[email protected]>
Signed-off-by: Dongjoon Hyun <[email protected]>1 parent c03cbfe commit cb1e416
File tree
2 files changed
+3
-7
lines changed- Sources/SparkConnect
- Tests/SparkConnectTests
2 files changed
+3
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | | - | |
| 301 | + | |
302 | 302 | | |
303 | | - | |
304 | | - | |
305 | 303 | | |
306 | 304 | | |
307 | 305 | | |
| |||
361 | 359 | | |
362 | 360 | | |
363 | 361 | | |
364 | | - | |
| 362 | + | |
365 | 363 | | |
366 | | - | |
367 | | - | |
368 | 364 | | |
369 | 365 | | |
370 | 366 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| |||
0 commit comments