Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c27af55 authored by Bernie Innocenti's avatar Bernie Innocenti
Browse files

Add explicit Result::ok() checks where needed

Test: m checkbuild continuous_instrumentation_tests continuous_instrumentation_tests_api_coverage continuous_native_tests device-tests platform_tests
Exempt-From-Owner-Approval: mechanical mass refactoring
Change-Id: I698a6843686810527d753d075f543f1d6e1eb1f4
parent b8c9fff2
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ base::Result<std::shared_ptr<KeyCharacterMap>> KeyCharacterMap::load(const std::
    }
    std::unique_ptr<Tokenizer> t(tokenizer);
    auto ret = load(t.get(), format);
    if (ret) {
    if (ret.ok()) {
        (*ret)->mLoadFileName = filename;
    }
    return ret;
@@ -170,7 +170,7 @@ base::Result<std::shared_ptr<KeyCharacterMap>> KeyCharacterMap::loadContents(
    }
    std::unique_ptr<Tokenizer> t(tokenizer);
    auto ret = load(t.get(), format);
    if (ret) {
    if (ret.ok()) {
        (*ret)->mLoadFileName = filename;
    }
    return ret;