Skip to content

refactor: use the built-in max/min to simplify the code#9044

Merged
macneale4 merged 1 commit intodolthub:mainfrom
evenevent:main
Apr 8, 2025
Merged

refactor: use the built-in max/min to simplify the code#9044
macneale4 merged 1 commit intodolthub:mainfrom
evenevent:main

Conversation

@evenevent
Copy link
Copy Markdown
Contributor

Use the built-in max/min from the standard library in Go 1.21 to simplify the code. https://pkg.go.dev/builtin@go1.21.0#max

Signed-off-by: evenevent <digping@icloud.com>
Copy link
Copy Markdown
Contributor

@macneale4 macneale4 left a comment

Choose a reason for hiding this comment

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

LGTM. Running CI

@evenevent
Copy link
Copy Markdown
Contributor Author

LGTM. Running CI

Thanks for your review.

@evenevent
Copy link
Copy Markdown
Contributor Author

The CI failure seems unrelated to the changes in this PR.

Run mheap/github-action-required-labels@v5
  with:
    mode: exactly
    count: 1
    labels: correctness_approved
    add_comment: true
    message: This PR is being tested for SQL correctness. Please allow ~[2](https://github.com/dolthub/dolt/actions/runs/14103799699/job/39939546520#step:2:2)5 mins for this to complete. If this PR does not result in a SQL correctness regression, the `correctness_approved` label will be automatically added to this PR and the `Check for correctness_approved` workflow will succeed.
    token: ***
    use_regex: false
Error: Resource not accessible by integration

@macneale4
Copy link
Copy Markdown
Contributor

Copied into a PR owned by me: #9089 - I have permissions which should help with the CI.

@macneale4 macneale4 merged commit 321dc7c into dolthub:main Apr 8, 2025
65 of 70 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants