Skip to content

Commit

Permalink
style: use iota+1 if the state is not the normal state
Browse files Browse the repository at this point in the history
  • Loading branch information
TypicalAM committed Jan 20, 2023
1 parent febfced commit 9084726
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/backend/items.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
type ItemType int

const (
Category ItemType = iota
Category ItemType = iota + 1
Feed
)

Expand Down
2 changes: 1 addition & 1 deletion internal/model/tab/tab.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
type Type int

const (
Welcome Type = iota
Welcome Type = iota + 1
Feed
Category
)
Expand Down

0 comments on commit 9084726

Please sign in to comment.