Skip to content

Commit

Permalink
remove else
Browse files Browse the repository at this point in the history
  • Loading branch information
hugo-vrijswijk committed Jan 4, 2024
1 parent 122c016 commit a302cae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/useResizeDetector.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ function useResizeDetector<T extends HTMLElement = any>({
get(target, prop) {
if (prop === 'current') {
return refElement;
} else {
return target[prop];
}
return target[prop];
},
set(target, prop, value) {
if (prop === 'current') {
Expand Down

0 comments on commit a302cae

Please sign in to comment.