Skip to content

Commit

Permalink
checkpoint
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Oct 10, 2023
1 parent 00ba7ab commit a1b9a5c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion api/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2284,7 +2284,7 @@ func (r *ReportWriter) Write(id uint) {
tarWriter.Close()
}()
filter := tar.NewFilter(reportDir)
filter.Excluded("output.js")
filter.Exclude("output.js")
tarWriter.Filter = filter
err = tarWriter.AssertDir(Settings.Analysis.ReportPath)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion api/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (h *BucketOwner) bucketGet(ctx *gin.Context, id uint) {
}
if st.IsDir() {
filter := tar.NewFilter(path)
filter.Included(ctx.Query(Filter))
filter.Include(ctx.Query(Filter))
if h.Accepted(ctx, binding.MIMEHTML) {
h.getFile(ctx, m)
} else {
Expand Down
8 changes: 4 additions & 4 deletions tar/filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ func (r *Filter) Match(path string) (b bool) {
}

//
// Included adds included patterns.
// Include adds included patterns.
// Empty ("") patterns are ignored.
func (r *Filter) Included(patterns ...string) {
func (r *Filter) Include(patterns ...string) {
r.included.Add(patterns...)
}

//
// Excluded adds excluded patterns.
// Exclude adds excluded patterns.
// Empty ("") patterns are ignored.
func (r *Filter) Excluded(patterns ...string) {
func (r *Filter) Exclude(patterns ...string) {
r.excluded.Add(patterns...)
}

Expand Down

0 comments on commit a1b9a5c

Please sign in to comment.