aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpborman <borman@google.com>2017-10-19 10:36:51 -0700
committerGitHub <noreply@github.com>2017-10-19 10:36:51 -0700
commite367a344cbe8e08149f9951115dc299ebd42b919 (patch)
treecabb0860f0de1ae2cdfc2cd3621cdbb6cc678f66
parent7e072fc3a7be179aee6d3359e46015aa8c995314 (diff)
parent5b5a8cb7c50c3ea75f6e27ecf5bf8050861875bf (diff)
downloadgoogle-uuid-e367a344cbe8e08149f9951115dc299ebd42b919.tar.gz
Merge pull request #22 from kortschak/constant
Remove never-true conditional
-rw-r--r--node.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/node.go b/node.go
index 5f0156a..f2c2765 100644
--- a/node.go
+++ b/node.go
@@ -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[:]