Skip to content

Commit

Permalink
make golint happy
Browse files Browse the repository at this point in the history
  • Loading branch information
tiancaiamao committed Oct 11, 2018
1 parent 2c7d6ed commit b5be88c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ type PartitionInfo struct {
Definitions []PartitionDefinition `json:"definitions"`
}

// GetNameByID gets the partition name by ID.
func (pi *PartitionInfo) GetNameByID(id int64) string {
for _, def := range pi.Definitions {
if id == def.ID {
Expand Down

0 comments on commit b5be88c

Please sign in to comment.