mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 08:55:24 +00:00
Fix lint
This commit is contained in:
parent
da733d141a
commit
c1dc28d32c
@ -228,14 +228,18 @@ func xarBom(opt Options, rootPath string) error {
|
||||
|
||||
// List files for xar
|
||||
var files []string
|
||||
if err := filepath.Walk(filepath.Join(rootPath, "flat"), func(path string, info os.FileInfo, err error) error {
|
||||
err := filepath.Walk(
|
||||
filepath.Join(rootPath, "flat"),
|
||||
func(path string, info os.FileInfo, _ error) error {
|
||||
relativePath, err := filepath.Rel(filepath.Join(rootPath, "flat"), path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
files = append(files, relativePath)
|
||||
return nil
|
||||
}); err != nil {
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "iterate files")
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user