[PR #5115] [MERGED] Use named const instead of a raw string #17648

Closed
opened 2025-11-02 14:43:25 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/5115
Author: @cristaloleg
Created: 10/19/2018
Status: Merged
Merged: 10/20/2018
Merged by: @lunny

Base: masterHead: gocritic-namedConst


📝 Commits (2)

  • 9c8f325 Use named const instead of a raw string
  • 927cf48 Merge branch 'master' into gocritic-namedConst

📊 Changes

1 file changed (+1 additions, -1 deletions)

View changed files

📝 models/user.go (+1 -1)

📄 Description

Found by go-critic.

Log:

models/user.go:1390:18 namedConst use SearchOrderByAlphabetically instead of "name ASC"

🔄 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/go-gitea/gitea/pull/5115 **Author:** [@cristaloleg](https://github.com/cristaloleg) **Created:** 10/19/2018 **Status:** ✅ Merged **Merged:** 10/20/2018 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `gocritic-namedConst` --- ### 📝 Commits (2) - [`9c8f325`](https://github.com/go-gitea/gitea/commit/9c8f3250dc707ad272c15f66fba0b40cdbd2c756) Use named const instead of a raw string - [`927cf48`](https://github.com/go-gitea/gitea/commit/927cf48c874e48c8b081c89e3c31a6030667b2fd) Merge branch 'master' into gocritic-namedConst ### 📊 Changes **1 file changed** (+1 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `models/user.go` (+1 -1) </details> ### 📄 Description Found by go-critic. Log: ``` models/user.go:1390:18 namedConst use SearchOrderByAlphabetically instead of "name ASC" ``` --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 14:43:25 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#17648