Skip to content

Commit 8285c07

Browse files
committed
try to fix lint
1 parent 9355670 commit 8285c07

File tree

1 file changed

+10
-12
lines changed

1 file changed

+10
-12
lines changed

src/iceberg/datum.cc

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,16 @@
1818
*/
1919

2020
#include "iceberg/datum.h"
21-
#include "iceberg/exception.h"
2221

2322
#include <sstream>
2423

24+
#include "iceberg/exception.h"
25+
2526
namespace iceberg {
2627

2728
// Constructor
28-
PrimitiveLiteral::PrimitiveLiteral(PrimitiveLiteralValue value, std::shared_ptr<PrimitiveType> type)
29+
PrimitiveLiteral::PrimitiveLiteral(PrimitiveLiteralValue value,
30+
std::shared_ptr<PrimitiveType> type)
2931
: value_(std::move(value)), type_(std::move(type)) {}
3032

3133
// Factory methods
@@ -66,24 +68,20 @@ Result<std::vector<uint8_t>> PrimitiveLiteral::Serialize() const {
6668
}
6769

6870
// Getters
69-
const PrimitiveLiteralValue& PrimitiveLiteral::value() const {
70-
return value_;
71-
}
71+
const PrimitiveLiteralValue& PrimitiveLiteral::value() const { return value_; }
7272

73-
const std::shared_ptr<PrimitiveType>& PrimitiveLiteral::type() const {
74-
return type_;
75-
}
73+
const std::shared_ptr<PrimitiveType>& PrimitiveLiteral::type() const { return type_; }
7674

7775
// Cast method
78-
Result<PrimitiveLiteral> PrimitiveLiteral::CastTo(const std::shared_ptr<PrimitiveType>& target_type) const {
76+
Result<PrimitiveLiteral> PrimitiveLiteral::CastTo(
77+
const std::shared_ptr<PrimitiveType>& target_type) const {
7978
if (*type_ == *target_type) {
8079
// If types are the same, return a copy of the current literal
8180
return PrimitiveLiteral(value_, target_type);
8281
}
8382

84-
return NotImplemented("Cast from {} to {} is not implemented",
85-
type_->ToString(), target_type->ToString());
86-
83+
return NotImplemented("Cast from {} to {} is not implemented", type_->ToString(),
84+
target_type->ToString());
8785
}
8886

8987
// Three-way comparison operator

0 commit comments

Comments
 (0)