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