Skip to content

Commit 8df9621

Browse files
chore: clang format collection.cc (#319)
1 parent 1c90b57 commit 8df9621

1 file changed

Lines changed: 4 additions & 5 deletions

File tree

src/db/collection.cc

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1054,7 +1054,7 @@ Status CollectionImpl::validate(const std::string &column,
10541054
}
10551055
if (schema_->has_field(schema->name())) {
10561056
return Status::InvalidArgument("column already exists: ",
1057-
schema->name());
1057+
schema->name());
10581058
}
10591059

10601060
auto s = schema->validate();
@@ -1448,8 +1448,8 @@ Result<WriteResults> CollectionImpl::write_impl(std::vector<Doc> &docs,
14481448
// validate write batch size
14491449
if (docs.size() > kMaxWriteBatchSize) {
14501450
CHECK_RETURN_STATUS_EXPECTED(Status::InvalidArgument(
1451-
"Too many docs: ", docs.size(),
1452-
" exceeds max write batch size ", kMaxWriteBatchSize));
1451+
"Too many docs: ", docs.size(), " exceeds max write batch size of ",
1452+
kMaxWriteBatchSize));
14531453
}
14541454

14551455
// validate docs
@@ -1830,8 +1830,7 @@ Status CollectionImpl::acquire_file_lock(bool create) {
18301830

18311831
if (create) {
18321832
if (!lock_file_.create(lock_file_path.c_str(), 0)) {
1833-
return Status::InternalError("Can't create lock file: ",
1834-
lock_file_path);
1833+
return Status::InternalError("Can't create lock file: ", lock_file_path);
18351834
}
18361835
} else {
18371836
if (!lock_file_.open(lock_file_path.c_str(), false)) {

0 commit comments

Comments
 (0)