Browse Source

Fix String() for nil votes, and non-full Validation

pull/96/head
Jae Kwon 10 years ago
parent
commit
027ad79f9c
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      types/vote.go

+ 3
- 0
types/vote.go View File

@ -54,6 +54,9 @@ func (vote *Vote) Copy() *Vote {
}
func (vote *Vote) String() string {
if vote == nil {
return "nil-Vote"
}
var typeString string
switch vote.Type {
case VoteTypePrevote:


Loading…
Cancel
Save