File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -298,10 +298,8 @@ public class ArrowReader { // swiftlint:disable:this type_body_length
298298 messageEndOffset: messageEndOffset
299299 ) . get ( )
300300 result. batches. append ( recordBatch)
301- } catch let error as ArrowError {
301+ } catch let error {
302302 return . failure( error)
303- } catch {
304- return . failure( . unknownError( " Unexpected error: \( error) " ) )
305303 }
306304 default :
307305 return . failure( . unknownError( " Unhandled header type: \( message. headerType) " ) )
@@ -361,10 +359,8 @@ public class ArrowReader { // swiftlint:disable:this type_body_length
361359 ) . get ( )
362360 result. batches. append ( recordBatch)
363361 return . success( ( ) )
364- } catch let error as ArrowError {
362+ } catch let error {
365363 return . failure( error)
366- } catch {
367- return . failure( . unknownError( " Unexpected error: \( error) " ) )
368364 }
369365
370366 default :
Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ struct RuntimeConfTests {
3131 _ = try await client. connect ( UUID ( ) . uuidString)
3232 let conf = RuntimeConf ( client)
3333
34- #expect( try await conf. get ( " spark.app.name " ) != nil )
34+ #expect( try await ! conf. get ( " spark.app.name " ) . isEmpty )
3535
3636 try await #require( throws: Error . self) {
3737 try await conf. get ( " spark.test.non-exist " )
You can’t perform that action at this time.
0 commit comments