diff options
author | pborman <borman@google.com> | 2017-10-19 10:36:51 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-10-19 10:36:51 -0700 |
commit | e367a344cbe8e08149f9951115dc299ebd42b919 (patch) | |
tree | cabb0860f0de1ae2cdfc2cd3621cdbb6cc678f66 | |
parent | 7e072fc3a7be179aee6d3359e46015aa8c995314 (diff) | |
parent | 5b5a8cb7c50c3ea75f6e27ecf5bf8050861875bf (diff) | |
download | google-uuid-e367a344cbe8e08149f9951115dc299ebd42b919.tar.gz |
Merge pull request #22 from kortschak/constant
Remove never-true conditional
-rw-r--r-- | node.go | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -94,9 +94,6 @@ func SetNodeID(id []byte) bool { // NodeID returns the 6 byte node id encoded in uuid. It returns nil if uuid is // not valid. The NodeID is only well defined for version 1 and 2 UUIDs. func (uuid UUID) NodeID() []byte { - if len(uuid) != 16 { - return nil - } var node [6]byte copy(node[:], uuid[10:]) return node[:] |