summaryrefslogtreecommitdiffstats
path: root/util/system/filemap.cpp
diff options
context:
space:
mode:
authormyltsev <[email protected]>2022-02-10 16:46:03 +0300
committerDaniil Cherednik <[email protected]>2022-02-10 16:46:03 +0300
commit9166d66c30c23c9e85a7c88185a068987148d23f (patch)
tree421bdcec5755d9e441c485560aab5ab8d74c7475 /util/system/filemap.cpp
parent8d3a5ed3a188a34167eaee54f1691ce5c9edf2f3 (diff)
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/system/filemap.cpp')
-rw-r--r--util/system/filemap.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/util/system/filemap.cpp b/util/system/filemap.cpp
index 7454a4cb948..7cd3a9b42f4 100644
--- a/util/system/filemap.cpp
+++ b/util/system/filemap.cpp
@@ -153,14 +153,14 @@ public:
}
void CheckFile() const {
- if (!File_.IsOpen()) {
+ if (!File_.IsOpen()) {
ythrow yexception() << "TMemoryMap: FILE '" << DbgName_ << "' is not open, " << LastSystemErrorText();
- }
- if (Length_ < 0) {
+ }
+ if (Length_ < 0) {
ythrow yexception() << "'" << DbgName_ << "' is not a regular file";
- }
- }
-
+ }
+ }
+
inline TImpl(FILE* f, EOpenMode om, TString dbgName)
: File_(Duplicate(f))
, DbgName_(std::move(dbgName))