File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,10 @@ func FixLanguageStatsToSaveSize(x *xorm.Engine) error {
22
22
type RepoIndexerType int
23
23
24
24
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
29
29
)
30
30
31
31
// RepoIndexerStatus see models/repo_indexer.go
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ type Badge struct {
17
17
}
18
18
19
19
// UserBadge represents a user badge
20
- type UserBadge struct {
20
+ type UserBadge struct { //nolint:revive
21
21
ID int64 `xorm:"pk autoincr"`
22
22
BadgeID int64
23
23
UserID int64 `xorm:"INDEX"`
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ func CurrentUsername() string {
16
16
if err != nil {
17
17
return fallbackCurrentUsername ()
18
18
}
19
- username := userinfo .Username //nolint:revive
19
+ username := userinfo .Username
20
20
if runtime .GOOS == "windows" {
21
21
parts := strings .Split (username , "\\ " )
22
22
username = parts [len (parts )- 1 ]
You can’t perform that action at this time.
0 commit comments