mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
Fix lint
This commit is contained in:
parent
da733d141a
commit
c1dc28d32c
1 changed files with 12 additions and 8 deletions
|
|
@ -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 {
|
||||
relativePath, err := filepath.Rel(filepath.Join(rootPath, "flat"), path)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
files = append(files, relativePath)
|
||||
return nil
|
||||
}); err != nil {
|
||||
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
|
||||
},
|
||||
)
|
||||
if err != nil {
|
||||
return errors.Wrap(err, "iterate files")
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue