Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 54af418

Browse files
author
Cdok
committed
renamed header files, moved file read into variable
1 parent fbcd652 commit 54af418

File tree

4 files changed

+2
-1
lines changed

4 files changed

+2
-1
lines changed

β€Žcopyright/copyright.jsβ€Ž

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@ const copyright = {
3434

3535
Promise.all(processedGlobs).then((files) => {
3636
const filesContainingHeader = files.filter((file) => {
37-
const hasCopyrightHeader = fs.readFileSync(file).includes('Copyright (c)')
37+
const content = fs.readFileSync(file)
38+
const hasCopyrightHeader = content.includes('Copyright (c)')
3839
const ext = file.match(/\.[0-9a-z]+$/i)[0]
3940

4041
if (hasCopyrightHeader) {

0 commit comments

Comments
Β (0)