Skip to content

Commit

Permalink
fix: remove explicit returns
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmcgrath13 committed Jan 16, 2025
1 parent 0bd6d9f commit db059c3
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions containers/ecr-viewer/src/app/components/BaseFilter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,11 @@ export const useQueryParam = () => {
// Set a query param with a specific value
const setQueryParam = (key: string, value: string) => {
curSearchParams.set(key, value);
return;
};

// Delete a query param or a specific query param value
const deleteQueryParam = (key: string) => {
curSearchParams.delete(key);
return;
};

const pushQueryUpdate = () => {
Expand All @@ -75,8 +73,6 @@ export const useQueryParam = () => {
.join("|");
}
isDefault ? deleteQueryParam(key) : setQueryParam(key, value);

return;
};

return { searchParams, deleteQueryParam, updateQueryParam, pushQueryUpdate };
Expand Down

0 comments on commit db059c3

Please sign in to comment.