Skip to content

Commit

Permalink
lint free
Browse files Browse the repository at this point in the history
  • Loading branch information
H34D committed Sep 1, 2022
1 parent cd0c48f commit e8c7b20
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/common/helpers/rest-calls/index.ts
Expand Up @@ -21,7 +21,7 @@ export const useRestCall = ({
const fullPath = useMemo(() => {
let newPath = metadata.name;
if (pathParameters) {
Object.keys(pathParameters).forEach((key) => {
Object.keys(pathParameters).forEach(key => {
//@ts-ignore
newPath = newPath.replace(':' + key, [pathParameters[key]]);
});
Expand Down Expand Up @@ -61,7 +61,7 @@ export const useSimpleRestCall = ({
const fullPath = useMemo(() => {
let newPath = metadata.name;
if (pathParameters) {
Object.keys(pathParameters).forEach((key) => {
Object.keys(pathParameters).forEach(key => {
//@ts-ignore
newPath = newPath.replace(':' + key, [pathParameters[key]]);
});
Expand Down Expand Up @@ -94,7 +94,7 @@ export const useMasaQuery = (
const fullPath = useMemo(() => {
let newPath = metadata.name;
if (pathParameters) {
Object.keys(pathParameters).forEach((key) => {
Object.keys(pathParameters).forEach(key => {
//@ts-ignore
newPath = newPath.replace(':' + key, [pathParameters[key]]);
});
Expand All @@ -115,7 +115,7 @@ export const useMasaQuery = (
method: metadata.method,
mode: 'cors',
body: JSON.stringify(body),
}).then((res) => res.json()),
}).then(res => res.json()),
{ ...settings, enabled: !token ? false : !!settings?.enabled }
);

Expand All @@ -132,7 +132,7 @@ export const useMasaMutation = (
const fullPath = useMemo(() => {
let newPath = metadata.name;
if (pathParameters) {
Object.keys(pathParameters).forEach((key) => {
Object.keys(pathParameters).forEach(key => {
//@ts-ignore
newPath = newPath.replace(':' + key, [pathParameters[key]]);
});
Expand All @@ -154,7 +154,7 @@ export const useMasaMutation = (
method: metadata.method,
mode: 'cors',
body: JSON.stringify(newBody ? newBody : body),
}).then((res) => res.json()),
}).then(res => res.json()),
{ ...settings, enabled: !token ? false : !!settings?.enabled }
);

Expand Down
2 changes: 1 addition & 1 deletion src/common/rest/index.ts
Expand Up @@ -12,7 +12,6 @@ import * as contractsMint from './contracts-mint';
import * as mintCreditScore from './mint-credit-score';
import * as getCreditScore from './get-credit-score';


import * as getVezgoLink from './vezgo/get-link';
import * as listVezgoProviders from './vezgo/list-providers';
import * as listVezgoAccounts from './vezgo/list-accounts';
Expand Down Expand Up @@ -53,6 +52,7 @@ export interface MethodMetadata {
method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'OPTIONS';
parameters: Parameter[];
}

export const masaRestClient = {
auth,
accounts,
Expand Down

0 comments on commit e8c7b20

Please sign in to comment.