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

Commit 147c86e7 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: I9b893af3c9981f8cdf5c142297398f68133bd075
parent 9c27af55
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -80,7 +80,7 @@ base::Result<std::shared_ptr<KeyLayoutMap>> KeyLayoutMap::loadContents(const std
    }
    std::unique_ptr<Tokenizer> t(tokenizer);
    auto ret = load(t.get());
    if (ret) {
    if (ret.ok()) {
        (*ret)->mLoadFileName = filename;
    }
    return ret;
@@ -95,7 +95,7 @@ base::Result<std::shared_ptr<KeyLayoutMap>> KeyLayoutMap::load(const std::string
    }
    std::unique_ptr<Tokenizer> t(tokenizer);
    auto ret = load(t.get());
    if (ret) {
    if (ret.ok()) {
        (*ret)->mLoadFileName = filename;
    }
    return ret;