PpdProvider v3: don't double-check non-emptiness
This change modifies all call sites in PPD metadata parsing functions to only check that ParseJsonAndUnnestKey() returns something that is not base::nullopt. ParseJsonAndUnnestKey() already returns nullopt instead of any empty container, so there's no need to double-check that the base::Value is not empty. Bug: chromium:888189 Test: chromeos_unittests --gtest_filter='PpdMetadataParserTest.*' Change-Id: I057b6aab97dc6cc2477488a0238ecced726d06a1 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2378403 Commit-Queue: Kalvin Lee <kdlee@chromium.org> Reviewed-by:Luum Habtemariam <luum@chromium.org> Cr-Commit-Position: refs/heads/master@{#808117}
Showing
Please register or sign in to comment