Skip to content

Commit b6cfb71

Browse files
committed
remove conditional if block from CookieConsentManager
1 parent 9e4d51c commit b6cfb71

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/cookieConsentManager.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,7 @@ export default class CookieConsentManager implements ICookieConsentManager {
4444
noTargeting: false,
4545
};
4646

47-
constructor(flags?: Partial<ICookieConsentFlags>) {
48-
if (!flags) {
49-
return;
50-
}
51-
47+
constructor(flags: Partial<ICookieConsentFlags> = {}) {
5248
const { noFunctional, noTargeting } = flags;
5349
this.flags.noFunctional = noFunctional === true;
5450
this.flags.noTargeting = noTargeting === true;

0 commit comments

Comments
 (0)