From 2ce8d168bb751d62664749631f9882f3dab84b00 Mon Sep 17 00:00:00 2001 From: BobChao87 Date: Thu, 26 Aug 2021 21:06:06 -0700 Subject: [PATCH] Fix some linting regarding arrow funcs --- components/header/Cookies.vue | 2 +- plugins/google-gtag.client.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/header/Cookies.vue b/components/header/Cookies.vue index 49541bf1..1b9dd352 100644 --- a/components/header/Cookies.vue +++ b/components/header/Cookies.vue @@ -38,7 +38,7 @@ export default Vue.extend({ methods: { setCookies(consent: boolean): void { // We invert for these, because these are DISABLE flags. Consent: yes; disable: no - getGTagIds().forEach(id => (window as any)[`ga-disable-${id}`] = !consent); + getGTagIds().forEach((id) => { (window as any)[`ga-disable-${id}`] = !consent; }); localStorage.setItem('consent', consent.toString()); diff --git a/plugins/google-gtag.client.ts b/plugins/google-gtag.client.ts index b5089146..eb340d74 100644 --- a/plugins/google-gtag.client.ts +++ b/plugins/google-gtag.client.ts @@ -2,5 +2,5 @@ import { getGTagIds } from '~/configs/googe-gtag.config'; export default function (): void { const consent: boolean = (localStorage.getItem('consent') ?? 'false') === 'false'; - getGTagIds().forEach(id => (window as any)[`ga-disable-${id}`] = consent); + getGTagIds().forEach((id) => { (window as any)[`ga-disable-${id}`] = consent; }); }