diff options
author | Bernie Innocenti <codewiz@google.com> | 2020-02-06 03:49:33 +0900 |
---|---|---|
committer | Bernie Innocenti <codewiz@google.com> | 2020-02-06 17:04:27 +0000 |
commit | cecebbbaccd36dc2e9f6e80c8e91e57d979963a5 (patch) | |
tree | e866ec8f6bd1eafcc47a7f26d5b957ad787dcfdc /init/import_parser.cpp | |
parent | a6bc86aae72e406c1e90ff25eb3f95b654d9a723 (diff) |
Convert system/core to Result::ok()
No functionality changes, this is a mechanical cleanup.
Test: m
Test: cd system/core && atest
Change-Id: Ifdaa3ce1947ed578f656d5a446978726eb416c36
Diffstat (limited to 'init/import_parser.cpp')
-rw-r--r-- | init/import_parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/init/import_parser.cpp b/init/import_parser.cpp index 1a43508d7..e4b25ca41 100644 --- a/init/import_parser.cpp +++ b/init/import_parser.cpp @@ -30,7 +30,7 @@ Result<void> ImportParser::ParseSection(std::vector<std::string>&& args, } auto conf_file = ExpandProps(args[1]); - if (!conf_file) { + if (!conf_file.ok()) { return Error() << "Could not expand import: " << conf_file.error(); } |