diff options
| author | Haishan <[email protected]> | 2022-06-06 23:39:56 +0800 |
|---|---|---|
| committer | Haishan <[email protected]> | 2022-06-06 23:39:56 +0800 |
| commit | 78f3434cb52f53c66936de278f0828c19ef63666 (patch) | |
| tree | e7f9685cc0f3d8eaa6a94ad330e8876752ecb276 /src/api/rules.ts | |
| parent | 23e734aa548354bb7ceff5ad8d85de95cd860a55 (diff) | |
Run prettier
Diffstat (limited to 'src/api/rules.ts')
| -rw-r--r-- | src/api/rules.ts | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/api/rules.ts b/src/api/rules.ts index b57b0e3..4d18c23 100644 --- a/src/api/rules.ts +++ b/src/api/rules.ts @@ -12,9 +12,7 @@ type RuleAPIItem = { proxy: string; }; -function normalizeAPIResponse(json: { - rules: Array<RuleAPIItem>; -}): Array<RuleItem> { +function normalizeAPIResponse(json: { rules: Array<RuleAPIItem> }): Array<RuleItem> { invariant( json.rules && json.rules.length >= 0, 'there is no valid rules list in the rules API response' |
