Skip to content

Commit

Permalink
chore: simplyfing code
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasio committed Jul 13, 2024
1 parent 6d2dc90 commit 86b5875
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions packages/core/src/data/fetchFn/fetchAppSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ export async function fetchAppSettings<

const config = _config ?? getHeadstartWPConfig();

const {
data: { result },
} = await executeFetchStrategy<T, P>(fetchAppSettings.fetcher<T, P>(), config, params, options);

return { data: result };
return executeFetchStrategy<T, P>(fetchAppSettings.fetcher<T, P>(), config, params, options);
}

fetchAppSettings.fetcher = <
Expand Down

0 comments on commit 86b5875

Please sign in to comment.