From 0253f8077a546580d431b2246733c3318b7868b8 Mon Sep 17 00:00:00 2001 From: Qian Wang Date: Sat, 24 Nov 2018 01:27:41 +0000 Subject: [PATCH] Delete duplicate return --- internal/util/obfs.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/internal/util/obfs.go b/internal/util/obfs.go index 7c9b70d..8286c69 100644 --- a/internal/util/obfs.go +++ b/internal/util/obfs.go @@ -11,7 +11,6 @@ import ( // The keys are generated from the SID and the payload of the frame. // FIXME: this code will panic if len(data)<18. func genXorKeys(secret []byte, data []byte) (i uint32, ii uint32, iii uint32) { - h := xxhash.New32() ret := make([]uint32, 3) preHash := make([]byte, 16) @@ -22,8 +21,6 @@ func genXorKeys(secret []byte, data []byte) (i uint32, ii uint32, iii uint32) { ret[j] = h.Sum32() } return ret[0], ret[1], ret[2] - - return 0, 0, 0 } func MakeObfs(key []byte) func(*mux.Frame) []byte {