@@ -74,8 +74,8 @@ Status LocalFileSystem::MkdirsInternal(const LocalFile& file) const {
7474 return Status::OK ();
7575 } else {
7676 // exists and is not a directory -> is a regular file
77- return Status::IOError (fmt::format ( " file {} already exists and is not a directory " ,
78- file.GetPath ()));
77+ return Status::IOError (
78+ fmt::format ( " file {} already exists and is not a directory " , file.GetPath ()));
7979 }
8080 }
8181
@@ -89,8 +89,7 @@ Status LocalFileSystem::MkdirsInternal(const LocalFile& file) const {
8989 if (is_dir) {
9090 return Status::OK ();
9191 } else {
92- return Status::IOError (
93- fmt::format (" create directory '{}' failed" , file.GetPath ()));
92+ return Status::IOError (fmt::format (" create directory '{}' failed" , file.GetPath ()));
9493 }
9594 }
9695 return Status::OK ();
@@ -255,17 +254,17 @@ Result<int64_t> LocalInputStream::GetPos() const {
255254Result<int32_t > LocalInputStream::Read (char * buffer, uint32_t size) {
256255 PAIMON_ASSIGN_OR_RAISE (int32_t read_length, file_.Read (buffer, size));
257256 if (read_length != static_cast <int32_t >(size)) {
258- return Status::IOError (fmt::format (" file '{}' read size {} != expected {}" ,
259- file_. GetPath (), read_length, size));
257+ return Status::IOError (fmt::format (" file '{}' read size {} != expected {}" , file_. GetPath (),
258+ read_length, size));
260259 }
261260 return read_length;
262261}
263262
264263Result<int32_t > LocalInputStream::Read (char * buffer, uint32_t size, uint64_t offset) {
265264 PAIMON_ASSIGN_OR_RAISE (int32_t read_length, file_.Read (buffer, size, offset));
266265 if (read_length != static_cast <int32_t >(size)) {
267- return Status::IOError (fmt::format (" file '{}' read size {} != expected {}" ,
268- file_. GetPath (), read_length, size));
266+ return Status::IOError (fmt::format (" file '{}' read size {} != expected {}" , file_. GetPath (),
267+ read_length, size));
269268 }
270269 return read_length;
271270}
0 commit comments