Skip to content

Commit

Permalink
chore: remove unused reject fn in promise
Browse files Browse the repository at this point in the history
Signed-off-by: Juan Muñoz <juan.munoz@alliander.com>
  • Loading branch information
juancho0202 committed Oct 30, 2023
1 parent 5c3142e commit 54906a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oscd-filtered-list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import { ListItem } from '@material/mwc-list/mwc-list-item';

function debounce(callback: () => void, delay = 250): Promise<void> {
let timeout: any;
return new Promise((resolve, reject) => {
return new Promise(resolve => {
clearTimeout(timeout);
timeout = setTimeout(() => {
callback();
Expand Down

0 comments on commit 54906a1

Please sign in to comment.