Skip to content

Commit

Permalink
SQL driver: nullable hash
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugene Babich committed Nov 21, 2019
1 parent d426846 commit 25f2d4b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion crypto/hash.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ import (
"encoding/hex"
"encoding/json"
"errors"

"github.com/inn4science/exonum-go/types"
)

Expand Down Expand Up @@ -67,6 +66,8 @@ func (key *Hash) Scan(src interface{}) error {
switch v := src.(type) {
case string:
return key.Decode(v)
case nil:
return nil
}
return errors.New("hash: invalid type")
}
Expand Down
1 change: 0 additions & 1 deletion explorer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"testing"

"github.com/inn4science/exonum-go/crypto"

"github.com/stretchr/testify/assert"
)

Expand Down

0 comments on commit 25f2d4b

Please sign in to comment.