Skip to content

Commit

Permalink
fix format lint
Browse files Browse the repository at this point in the history
Signed-off-by: liam-thunder <chenyou[dot]fdu[at]gmail.com>
  • Loading branch information
liam-thunder committed Jan 7, 2023
1 parent ba3fea5 commit f7f91b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion curvefs/src/metaserver/metastore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,7 +764,7 @@ MetaStatusCode MetaStoreImpl::SendS3ChunkInfoByStream(
const char* data = nullptr;
size_t data_size;
iterator->Value(&data, &data_size);
if(!data) {
if (!data) {
LOG(ERROR) << "Failed to get value from iterator";
return MetaStatusCode::STORAGE_INTERNAL_ERROR;
}
Expand Down
2 changes: 1 addition & 1 deletion curvefs/src/metaserver/storage/rocksdb_storage.h
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@ class RocksDBStorageIterator : public Iterator {

bool ParseFromValue(ValueType* value) override {
auto slice = iter_->value();
if(!value->ParseFromArray(slice.data(), slice.size())) {
if (!value->ParseFromArray(slice.data(), slice.size())) {
return false;
}
return true;
Expand Down

0 comments on commit f7f91b9

Please sign in to comment.