Skip to content

Commit e199eca

Browse files
committed
fixes
1 parent cdf35a7 commit e199eca

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

models/migrations/v1_13/v140.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ func FixLanguageStatsToSaveSize(x *xorm.Engine) error {
2222
type RepoIndexerType int
2323

2424
const (
25-
// RepoIndexerTypeCode code indexer
26-
RepoIndexerTypeCode RepoIndexerType = iota // 0 //nolint:unused
27-
// RepoIndexerTypeStats repository stats indexer
28-
RepoIndexerTypeStats // 1
25+
// RepoIndexerTypeCode code indexer - 0
26+
RepoIndexerTypeCode RepoIndexerType = iota //nolint:unused
27+
// RepoIndexerTypeStats repository stats indexer - 1
28+
RepoIndexerTypeStats
2929
)
3030

3131
// RepoIndexerStatus see models/repo_indexer.go

models/user/badge.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type Badge struct {
1717
}
1818

1919
// UserBadge represents a user badge
20-
type UserBadge struct {
20+
type UserBadge struct { //nolint:revive
2121
ID int64 `xorm:"pk autoincr"`
2222
BadgeID int64
2323
UserID int64 `xorm:"INDEX"`

modules/user/user.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func CurrentUsername() string {
1616
if err != nil {
1717
return fallbackCurrentUsername()
1818
}
19-
username := userinfo.Username //nolint:revive
19+
username := userinfo.Username
2020
if runtime.GOOS == "windows" {
2121
parts := strings.Split(username, "\\")
2222
username = parts[len(parts)-1]

0 commit comments

Comments
 (0)