Skip to content

Commit

Permalink
fix(archiver): fixing lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nettoclaudio committed Mar 28, 2023
1 parent 270a825 commit 05fe73e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tsuru/client/archiver_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func extractFiles(t *testing.T, c *check.C, r io.Reader) (m []miniFile) {

var data []byte

if h.Typeflag == tar.TypeReg || h.Typeflag == tar.TypeRegA {
if h.Typeflag == tar.TypeReg {
var b bytes.Buffer
written, err := io.CopyN(&b, tr, h.Size)
c.Assert(err, check.IsNil)
Expand Down
5 changes: 3 additions & 2 deletions tsuru/client/archiver_unix_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,15 +308,16 @@ func (s *S) TestArchive_(c *check.C) {
c.Assert(err, check.IsNil)

for _, file := range tt.files {
err := os.MkdirAll(filepath.Join(root, filepath.Dir(file)), 0700)
err = os.MkdirAll(filepath.Join(root, filepath.Dir(file)), 0700)
c.Assert(err, check.IsNil)

_, err = os.Create(filepath.Join(root, file))
c.Assert(err, check.IsNil)
}

if len(tt.ignored) > 0 {
f, err := os.Create(filepath.Join(root, ".tsuruignore"))
var f *os.File
f, err = os.Create(filepath.Join(root, ".tsuruignore"))
c.Assert(err, check.IsNil)

for _, l := range tt.ignored {
Expand Down

0 comments on commit 05fe73e

Please sign in to comment.