diff options
author | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 23:39:40 +0300 |
---|---|---|
committer | ilnurkh <ilnurkh@yandex-team.com> | 2023-10-09 23:57:14 +0300 |
commit | e601ca03f859335d57ecff2e5aa6af234b6052ed (patch) | |
tree | de519a847e58a1b3993fcbfe05ff44cc946a3e24 /library/cpp/getopt/small | |
parent | bbf2b6878af3854815a2c0ecb07a687071787639 (diff) | |
download | ydb-e601ca03f859335d57ecff2e5aa6af234b6052ed.tar.gz |
Y_VERIFY->Y_ABORT_UNLESS at ^l
https://clubs.at.yandex-team.ru/arcadia/29404
Diffstat (limited to 'library/cpp/getopt/small')
-rw-r--r-- | library/cpp/getopt/small/completer.cpp | 2 | ||||
-rw-r--r-- | library/cpp/getopt/small/completer.h | 2 | ||||
-rw-r--r-- | library/cpp/getopt/small/completion_generator.cpp | 4 |
3 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/getopt/small/completer.cpp b/library/cpp/getopt/small/completer.cpp index 3fff684adb..f9a14b8234 100644 --- a/library/cpp/getopt/small/completer.cpp +++ b/library/cpp/getopt/small/completer.cpp @@ -256,7 +256,7 @@ namespace NLastGetopt::NComp { } void TCustomCompleter::RegisterCustomCompleter(TCustomCompleter* completer) noexcept { - Y_VERIFY(completer); + Y_ABORT_UNLESS(completer); completer->Next_ = Head; Head = completer; } diff --git a/library/cpp/getopt/small/completer.h b/library/cpp/getopt/small/completer.h index 4136f13add..20f190c41a 100644 --- a/library/cpp/getopt/small/completer.h +++ b/library/cpp/getopt/small/completer.h @@ -174,7 +174,7 @@ namespace NLastGetopt::NComp { TMultipartCustomCompleter(TStringBuf sep) : Sep_(sep) { - Y_VERIFY(!Sep_.empty()); + Y_ABORT_UNLESS(!Sep_.empty()); } public: diff --git a/library/cpp/getopt/small/completion_generator.cpp b/library/cpp/getopt/small/completion_generator.cpp index ac41988217..d893afb40a 100644 --- a/library/cpp/getopt/small/completion_generator.cpp +++ b/library/cpp/getopt/small/completion_generator.cpp @@ -24,13 +24,13 @@ namespace NLastGetopt { TCompletionGenerator::TCompletionGenerator(const TModChooser* modChooser) : Options_(modChooser) { - Y_VERIFY(modChooser != nullptr); + Y_ABORT_UNLESS(modChooser != nullptr); } TCompletionGenerator::TCompletionGenerator(const TOpts* opts) : Options_(opts) { - Y_VERIFY(opts != nullptr); + Y_ABORT_UNLESS(opts != nullptr); } void TZshCompletionGenerator::Generate(TStringBuf command, IOutputStream& stream) { |