From 78f3434cb52f53c66936de278f0828c19ef63666 Mon Sep 17 00:00:00 2001 From: Haishan Date: Mon, 6 Jun 2022 23:39:56 +0800 Subject: Run prettier --- src/api/rules.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/api/rules.ts') 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; -}): Array { +function normalizeAPIResponse(json: { rules: Array }): Array { invariant( json.rules && json.rules.length >= 0, 'there is no valid rules list in the rules API response' -- cgit v1.3.1