Skip to content

Commit

Permalink
structure: refactor the code to add explicit type for const (pingcap#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rustin-bot authored and ngaut committed Nov 28, 2019
1 parent b0e8e07 commit 870ac75
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions structure/structure.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ import (
// structure error codes.
const (
codeInvalidHashKeyFlag terror.ErrCode = 1
codeInvalidHashKeyPrefix = 2
codeInvalidListIndex = 3
codeInvalidListMetaData = 4
codeWriteOnSnapshot = 5
codeInvalidHashKeyPrefix terror.ErrCode = 2
codeInvalidListIndex terror.ErrCode = 3
codeInvalidListMetaData terror.ErrCode = 4
codeWriteOnSnapshot terror.ErrCode = 5
)

var (
Expand Down

0 comments on commit 870ac75

Please sign in to comment.