如何使用if-error-return模式滿足eslint中的“一致返回”規則? [英]How to satisfy the “consistent-return” rule in eslint using an if-error-return pattern?