mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #5751] [MERGED] refactor: use the built-in max/min to simplify the code #5977
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5977
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/5751
Author: @alaningtrump
Created: 7/3/2026
Status: ✅ Merged
Merged: 7/4/2026
Merged by: @Mahyardana
Base:
main← Head:main📝 Commits (1)
dc6f66crefactor: use the built-in max/min to simplify the code📊 Changes
1 file changed (+2 additions, -8 deletions)
View changed files
📝
internal/web/service/client_groups.go(+2 -8)📄 Description
Summary
In Go 1.21, the standard library includes built-in max/min function, which can greatly simplify the code.
Why
Type of change
Areas affected
How was this tested?
Screenshots / recordings
Breaking changes
Checklist
go build ./...and the test suite pass locally.npm run lint,npm run typecheck, andnpm run buildpass.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.