Skip to content

Commit

Permalink
fix: 🐛 allow early validation
Browse files Browse the repository at this point in the history
  • Loading branch information
josh-hemphill committed May 11, 2021
1 parent d738d7c commit 7648cb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class CspDirectives {
this.ReferrerHeader = csp.referrer;
}
}
private checkReportTo (){
checkReportTo (): void {
const reportTo = this.CSP?.['report-to'];
if (reportTo === undefined) return;
else {
Expand Down

0 comments on commit 7648cb1

Please sign in to comment.