Skip to content

Commit 912e6f1

Browse files
committed
Fixed CI
1 parent 368ef1c commit 912e6f1

File tree

2 files changed

+4
-8
lines changed

2 files changed

+4
-8
lines changed

Sources/Pgvector/HalfVector.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#if canImport(PostgresClientKit)
1+
// TODO make conditional
22
import PostgresClientKit
3-
#endif
43

54
struct HalfVector: Equatable {
65
var value: [Float16]
@@ -14,10 +13,9 @@ struct HalfVector: Equatable {
1413
}
1514
}
1615

17-
#if canImport(PostgresClientKit)
16+
// TODO make conditional
1817
extension HalfVector: PostgresValueConvertible {
1918
public var postgresValue: PostgresValue {
2019
return PostgresValue(String(describing: value))
2120
}
2221
}
23-
#endif

Sources/Pgvector/Vector.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
#if canImport(PostgresClientKit)
1+
// TODO make conditional
22
import PostgresClientKit
3-
#endif
43

54
struct Vector: Equatable {
65
var value: [Float]
@@ -14,10 +13,9 @@ struct Vector: Equatable {
1413
}
1514
}
1615

17-
#if canImport(PostgresClientKit)
16+
// TODO make conditional
1817
extension Vector: PostgresValueConvertible {
1918
public var postgresValue: PostgresValue {
2019
return PostgresValue(String(describing: value))
2120
}
2221
}
23-
#endif

0 commit comments

Comments
 (0)