Skip to content

Commit 559d816

Browse files
committed
chore: apply quick fix suggestions
1 parent 5e24cb2 commit 559d816

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/commands/internal/builder.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ func (b Builder) getBinaryName() string {
243243

244244
func sanitizeVersion(v string) string {
245245
fn := func(c rune) bool {
246-
return !(unicode.IsLetter(c) || unicode.IsNumber(c) || c == '.' || c == '/')
246+
return !unicode.IsLetter(c) && !unicode.IsNumber(c) && c != '.' && c != '/'
247247
}
248248

249249
return strings.Join(strings.FieldsFunc(v, fn), "")

pkg/printers/printer.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func NewPrinter(log logutils.Log, cfg *config.Formats, reportData *report.Data,
6565
//nolint:gocyclo,funlen // the complexity is related to the number of formats.
6666
func (c *Printer) Print(issues []result.Issue) error {
6767
if c.cfg.IsEmpty() {
68-
c.cfg.Text.SimpleFormat.Path = outputStdOut
68+
c.cfg.Text.Path = outputStdOut
6969
}
7070

7171
var printers []issuePrinter

0 commit comments

Comments
 (0)