Skip to content

Commit

Permalink
checker: show files includes woff2
Browse files Browse the repository at this point in the history
We show the files by processing the files, compressing them and then
listing all .gz files. However .woff2 isn't compress and is filtered
out. This change explictily includes .woff2 files in the list.
  • Loading branch information
xtuc committed Jul 31, 2023
1 parent 69d4cba commit 900e243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/checker/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func filewalker(basedir string, files *[]string) filepath.WalkFunc {
return errors.Wrap(err, "failed to walk fs")
}
ext := filepath.Ext(path)
if ext == ".gz" {
if ext == ".gz" || ext == ".woff2" {
path = strings.ReplaceAll(path, ".gz", "")
path = strings.ReplaceAll(path, basedir+"/", "")
*files = append(*files, path)
Expand Down

0 comments on commit 900e243

Please sign in to comment.