Skip to content

Commit 220ef62

Browse files
author
xiao.dong
committed
fix format
1 parent 0c1094b commit 220ef62

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/iceberg/result.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ namespace iceberg {
3131
enum class ErrorKind {
3232
kAlreadyExists,
3333
kCommitStateUnknown,
34+
kDecompressError,
3435
kInvalidArgument,
3536
kInvalidExpression,
3637
kInvalidSchema,
3738
kIOError,
3839
kJsonParseError,
3940
kNoSuchNamespace,
4041
kNoSuchTable,
41-
kDecompressError,
4242
kNotFound,
4343
kNotImplemented,
4444
kNotSupported,
@@ -74,14 +74,14 @@ using Status = Result<void>;
7474

7575
DEFINE_ERROR_FUNCTION(AlreadyExists)
7676
DEFINE_ERROR_FUNCTION(CommitStateUnknown)
77+
DEFINE_ERROR_FUNCTION(DecompressError)
7778
DEFINE_ERROR_FUNCTION(InvalidArgument)
7879
DEFINE_ERROR_FUNCTION(InvalidExpression)
7980
DEFINE_ERROR_FUNCTION(InvalidSchema)
8081
DEFINE_ERROR_FUNCTION(IOError)
8182
DEFINE_ERROR_FUNCTION(JsonParseError)
8283
DEFINE_ERROR_FUNCTION(NoSuchNamespace)
8384
DEFINE_ERROR_FUNCTION(NoSuchTable)
84-
DEFINE_ERROR_FUNCTION(DecompressError)
8585
DEFINE_ERROR_FUNCTION(NotFound)
8686
DEFINE_ERROR_FUNCTION(NotImplemented)
8787
DEFINE_ERROR_FUNCTION(NotSupported)

src/iceberg/util/gzip_internal.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,9 @@ class ZlibImpl {
3939

4040
Status Init() {
4141
// Maximum window size
42-
static int kWindowBits = 15;
42+
constexpr int kWindowBits = 15;
4343
// Determine if this is libz or gzip from header.
44-
static int kDetectCodec = 32;
44+
constexpr int kDetectCodec = 32;
4545
int ret = inflateInit2(&stream_, kWindowBits | kDetectCodec);
4646
if (ret != Z_OK) {
4747
return DecompressError("inflateInit2 failed, result:{}", ret);

0 commit comments

Comments
 (0)