Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pkg/diff/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ func (m *MarkdownOutput) printDiff(maxDiffMessageCharCount uint) string {

if sectionsDiff.Len() == 0 {
if len(m.sections) > 0 {
sectionsDiff.WriteString(fmt.Sprintf("⚠️ Changes were found but `--max-diff-length` (%d) is too small to display them. Increase the value or check the HTML output instead.", maxDiffMessageCharCount))
fmt.Fprintf(&sectionsDiff, "⚠️ Changes were found but `--max-diff-length` (%d) is too small to display them. Increase the value or check the HTML output instead.", maxDiffMessageCharCount)
log.Warn().Msgf("🚨 --max-diff-length (%d) is too small to display any diff content. Increase the value or use the HTML output instead.", maxDiffMessageCharCount)
} else {
sectionsDiff.WriteString("No changes found")
Expand Down
4 changes: 2 additions & 2 deletions pkg/utils/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,10 @@ func CreateFolder(path string, override bool) error {
return err
}

var uniqueNumber uint64
var uniqueNumber atomic.Uint64

func UniqueNumber() uint64 {
return atomic.AddUint64(&uniqueNumber, 1)
return uniqueNumber.Add(1)
}

func UniqueId() string {
Expand Down
Loading