Skip to content

Commit

Permalink
Changes per feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
hanzei committed Dec 4, 2024
1 parent 6d29880 commit f831c87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/boards/support_packet.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
package boards

import (
"path"
"path/filepath"

"github.com/hashicorp/go-multierror"
"github.com/pkg/errors"
Expand Down Expand Up @@ -54,13 +54,13 @@ func (b *BoardsApp) GenerateSupportData(_ *plugin.Context) ([]*model.FileData, e
TotalCards: cardsCount,
ActiveCards: usedCardsCount,
}
data, err := yaml.Marshal(diagnostics)
body, err := yaml.Marshal(diagnostics)
if err != nil {
return nil, errors.Wrap(err, "Failed to marshal diagnostics")
}

return []*model.FileData{{
Filename: path.Join(b.manifest.Id, "diagnostics.yaml"),
Body: data,
Filename: filepath.Join(b.manifest.Id, "diagnostics.yaml"),
Body: body,
}}, result.ErrorOrNil()
}

0 comments on commit f831c87

Please sign in to comment.