diff options
author | Kirill Rogovoy <[email protected]> | 2021-07-19 20:06:08 +0300 |
---|---|---|
committer | Kirill Rogovoy <[email protected]> | 2021-07-19 20:06:08 +0300 |
commit | f0bf4e7afdcd8b02a62be45ab3e7d047ed865a79 (patch) | |
tree | 575c0ff2cbb846252bd2e494c81c396846aab2f6 /app/services/api/character-api.ts | |
parent | 67ad38d0a7cd319623e9f41c0c381ed5c5f6f973 (diff) |
Apply Prettier
Diffstat (limited to 'app/services/api/character-api.ts')
-rw-r--r-- | app/services/api/character-api.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/app/services/api/character-api.ts b/app/services/api/character-api.ts index 7755006..e28ec48 100644 --- a/app/services/api/character-api.ts +++ b/app/services/api/character-api.ts @@ -1,7 +1,7 @@ -import { ApiResponse } from "apisauce" -import { Api } from "./api" -import { GetCharactersResult } from "./api.types" -import { getGeneralApiProblem } from "./api-problem" +import { ApiResponse } from 'apisauce' +import { Api } from './api' +import { GetCharactersResult } from './api.types' +import { getGeneralApiProblem } from './api-problem' const API_PAGE_SIZE = 50 @@ -16,7 +16,7 @@ export class CharacterApi { try { // make the api call const response: ApiResponse<any> = await this.api.apisauce.get( - "https://raw.githubusercontent.com/infinitered/ignite/master/data/rick-and-morty.json", + 'https://raw.githubusercontent.com/infinitered/ignite/master/data/rick-and-morty.json', { amount: API_PAGE_SIZE }, ) @@ -28,10 +28,10 @@ export class CharacterApi { const characters = response.data.results - return { kind: "ok", characters } + return { kind: 'ok', characters } } catch (e) { __DEV__ && console.tron.log(e.message) - return { kind: "bad-data" } + return { kind: 'bad-data' } } } } |