Skip to content

Commit

Permalink
fix: lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gchiesa committed Sep 28, 2024
1 parent d939d5c commit 0f94080
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/filetreeprocessor/internal.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,20 +107,20 @@ func (tp *FileTreeProcessor) loadMultiparts() error {

// if it's file we copy the file to the destination
if !info.IsDir() {
multipart, err := multipart.NewMultipartFromFile(absPath, relPath)
m, err := multipart.NewMultipartFromFile(absPath, relPath)
if err != nil {
return err
}

if err = multipart.ParseParts(); err != nil { //nolint:gocritic
if err = m.ParseParts(); err != nil { //nolint:gocritic
return err
}
files, err := multipart.PartsToFiles()
files, err := m.PartsToFiles()
if err != nil {
return err
}
logger.WithFields(log.Fields{"parts": files, "multipart": relPath}).Debug("generating Parts from Multipart.")
tp.multiparts = append(tp.multiparts, multipart)
tp.multiparts = append(tp.multiparts, m)
} else {
logger.WithFields(log.Fields{"filePath": relPath}).Debug("skipping because is a directory.")
}
Expand Down

0 comments on commit 0f94080

Please sign in to comment.