mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-06-02 12:41:36 +00:00
Python's list.index() method raises an exception when the item isn't present in the list. Fix this check that was instead expecting a negative index. BUG=dawn:225 Change-Id: I8e67d71ff7384f49533a95d5cbe04da1cf7bb0bc Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/11301 Reviewed-by: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Commit-Queue: Kai Ninomiya <kainino@chromium.org>