Skip to content

Commit

Permalink
remove duplicate list item
Browse files Browse the repository at this point in the history
  • Loading branch information
alanhamlett committed Oct 8, 2024
1 parent 54e797f commit 66b570b
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/utils/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,7 @@ export const getApiUrl = async () => {
apiUrl: config.apiUrl,
});
let apiUrl = (settings.apiUrl as string) || config.apiUrl;
const suffixes = [
'/',
'.bulk',
'.bulk',
'/users/current/heartbeats',
'/heartbeats',
'/heartbeat',
];
const suffixes = ['/', '.bulk', '/users/current/heartbeats', '/heartbeats', '/heartbeat'];
for (const suffix of suffixes) {
if (apiUrl.endsWith(suffix)) {
apiUrl = apiUrl.slice(0, -suffix.length);
Expand Down

0 comments on commit 66b570b

Please sign in to comment.