[PR #3627] [MERGED] Refactor code and fix linter warnings #5489

Closed
opened 2026-10-31 20:47:19 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/MHSanaei/3x-ui/pull/3627
Author: @kr-ilya
Created: 1/4/2026
Status: ✅ Merged
Merged: 1/5/2026
Merged by: @MHSanaei

Base: main ← Head: refactor-clean


📝 Commits (3)

  • ab0b9b0 refactor: use any instead of empty interface
  • 702533e refactor: code cleanup
  • e1e0c62 Merge branch 'main' into refactor-clean

📊 Changes

16 files changed (+61 additions, -47 deletions)

View changed files

📝 main.go (+3 -3)
📝 sub/subJsonService.go (+3 -3)
📝 sub/subService.go (+4 -7)
📝 util/crypto/crypto.go (+1 -2)
📝 util/ldap/ldap.go (+28 -10)
📝 util/random/random.go (+3 -3)
📝 util/reflect_util/reflect.go (+2 -2)
📝 util/sys/sys_darwin.go (+2 -2)
📝 web/controller/server.go (+3 -3)
📝 web/global/global.go (+1 -1)
📝 web/job/clear_logs_job.go (+1 -1)
📝 web/service/server.go (+2 -2)
📝 web/web.go (+1 -1)
📝 web/websocket/hub.go (+3 -3)
📝 web/websocket/notifier.go (+3 -3)
📝 xray/api.go (+1 -1)

📄 Description

What is the pull request?

This pull request refactors the codebase to address linter warnings and improve Go idiomatic style.
No functional changes were introduced.

Which part of the application is affected by the change?

  • Frontend
  • Backend

Type of Changes

  • Bug fix
  • New feature
  • Refactoring
  • Other

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/MHSanaei/3x-ui/pull/3627 **Author:** [@kr-ilya](https://github.com/kr-ilya) **Created:** 1/4/2026 **Status:** ✅ Merged **Merged:** 1/5/2026 **Merged by:** [@MHSanaei](https://github.com/MHSanaei) **Base:** `main` ← **Head:** `refactor-clean` --- ### 📝 Commits (3) - [`ab0b9b0`](https://github.com/MHSanaei/3x-ui/commit/ab0b9b002f492530e3e9b2db99453731fcf72f56) refactor: use any instead of empty interface - [`702533e`](https://github.com/MHSanaei/3x-ui/commit/702533e1e60d6c139fa23f92bcbeafd77cfb31e1) refactor: code cleanup - [`e1e0c62`](https://github.com/MHSanaei/3x-ui/commit/e1e0c62137fd8e3b4e8546ad29e07efc2de8a48b) Merge branch 'main' into refactor-clean ### 📊 Changes **16 files changed** (+61 additions, -47 deletions) <details> <summary>View changed files</summary> 📝 `main.go` (+3 -3) 📝 `sub/subJsonService.go` (+3 -3) 📝 `sub/subService.go` (+4 -7) 📝 `util/crypto/crypto.go` (+1 -2) 📝 `util/ldap/ldap.go` (+28 -10) 📝 `util/random/random.go` (+3 -3) 📝 `util/reflect_util/reflect.go` (+2 -2) 📝 `util/sys/sys_darwin.go` (+2 -2) 📝 `web/controller/server.go` (+3 -3) 📝 `web/global/global.go` (+1 -1) 📝 `web/job/clear_logs_job.go` (+1 -1) 📝 `web/service/server.go` (+2 -2) 📝 `web/web.go` (+1 -1) 📝 `web/websocket/hub.go` (+3 -3) 📝 `web/websocket/notifier.go` (+3 -3) 📝 `xray/api.go` (+1 -1) </details> ### 📄 Description ## What is the pull request? This pull request refactors the codebase to address linter warnings and improve Go idiomatic style. No functional changes were introduced. ## Which part of the application is affected by the change? - [ ] Frontend - [x] Backend ## Type of Changes - [ ] Bug fix - [ ] New feature - [x] Refactoring - [ ] Other --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-31 20:47:19 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#5489
No description provided.