Skip to content

Commit

Permalink
remove experimental slices package
Browse files Browse the repository at this point in the history
  • Loading branch information
letFunny committed Feb 7, 2024
1 parent 22933d4 commit 74feda8
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions internal/slicer/report.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package slicer
import (
"fmt"
"io/fs"
"slices"

"github.com/canonical/chisel/internal/fsutil"
"github.com/canonical/chisel/internal/setup"
Expand Down Expand Up @@ -39,9 +38,7 @@ func (r *Report) Add(slice *setup.Slice, info *fsutil.Info) error {
info.Size != entry.Size || info.Hash != entry.Hash {
return fmt.Errorf("internal error: cannot add conflicting data for path %q", info.Path)
}
if !slices.Contains(entry.Slices, slice) {
entry.Slices = append(entry.Slices, slice)
}
entry.Slices = append(entry.Slices, slice)
r.Entries[info.Path] = entry
} else {
r.Entries[info.Path] = ReportEntry{
Expand Down

0 comments on commit 74feda8

Please sign in to comment.