Skip to content

Conversation

codebien
Copy link
Contributor

@codebien codebien commented Apr 11, 2025

What?

It drops a redundant logic about NO_COLOR.

Why?

Because we are already checking here

k6/cmd/state/state.go

Lines 188 to 192 in b61ca16

// Support https://no-color.org/, even an empty value should disable the
// color output from k6.
if _, ok := env["NO_COLOR"]; ok {
result.NoColor = true
}

Checklist

  • I have performed a self-review of my code.
  • I have commented on my code, particularly in hard-to-understand areas.
  • I have added tests for my changes.
  • I have run linter and tests locally (make check) and all pass.

@codebien codebien self-assigned this Apr 11, 2025
@codebien codebien mentioned this pull request Apr 11, 2025
14 tasks
@codebien codebien marked this pull request as ready for review April 14, 2025 13:02
@codebien codebien requested a review from a team as a code owner April 14, 2025 13:02
@codebien codebien requested review from oleiade and joanlopez and removed request for a team April 14, 2025 13:02
Copy link
Contributor

@oleiade oleiade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@codebien codebien merged commit f042559 into master Apr 14, 2025
28 checks passed
@codebien codebien deleted the remove-duplicated-nocolor-logic branch April 14, 2025 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants