chore: enforce brackets for if clause and for/while loops
This commit is contained in:
@@ -529,8 +529,12 @@ export function createMockStore<T>(config: {
|
||||
* Returns semantic status string
|
||||
*/
|
||||
get status() {
|
||||
if (isLoading) return 'pending';
|
||||
if (isError) return 'error';
|
||||
if (isLoading) {
|
||||
return 'pending';
|
||||
}
|
||||
if (isError) {
|
||||
return 'error';
|
||||
}
|
||||
return 'success';
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user