chore: enforce brackets for if clause and for/while loops
This commit is contained in:
@@ -150,7 +150,9 @@ export function createResponsiveManager(customBreakpoints?: Partial<Breakpoints>
|
||||
* @returns Cleanup function to remove listeners
|
||||
*/
|
||||
function init() {
|
||||
if (typeof window === 'undefined') return;
|
||||
if (typeof window === 'undefined') {
|
||||
return;
|
||||
}
|
||||
|
||||
const handleResize = () => {
|
||||
width = window.innerWidth;
|
||||
|
||||
Reference in New Issue
Block a user