From d75eeed25db4b704eaf3de5725fbb44880404ec0 Mon Sep 17 00:00:00 2001 From: Darien Raymond Date: Thu, 21 Jan 2016 12:05:16 +0000 Subject: [PATCH] format code --- common/serial/bytes.go | 14 +++++++------- proxy/vmess/id_test.go | 18 +++++++++--------- 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/common/serial/bytes.go b/common/serial/bytes.go index 3e92eddee..a9295bcdb 100644 --- a/common/serial/bytes.go +++ b/common/serial/bytes.go @@ -29,10 +29,10 @@ func (this BytesLiteral) String() string { // All returns true if all bytes in the ByteLiteral are the same as given value. func (this BytesLiteral) All(v byte) bool { - for _, b := range this { - if b != v { - return false - } - } - return true -} \ No newline at end of file + for _, b := range this { + if b != v { + return false + } + } + return true +} diff --git a/proxy/vmess/id_test.go b/proxy/vmess/id_test.go index e2f713f98..09a49950f 100644 --- a/proxy/vmess/id_test.go +++ b/proxy/vmess/id_test.go @@ -1,18 +1,18 @@ package vmess_test import ( - "testing" + "testing" - "github.com/v2ray/v2ray-core/common/uuid" - "github.com/v2ray/v2ray-core/common/serial" - . "github.com/v2ray/v2ray-core/proxy/vmess" - v2testing "github.com/v2ray/v2ray-core/testing" - "github.com/v2ray/v2ray-core/testing/assert" + "github.com/v2ray/v2ray-core/common/serial" + "github.com/v2ray/v2ray-core/common/uuid" + . "github.com/v2ray/v2ray-core/proxy/vmess" + v2testing "github.com/v2ray/v2ray-core/testing" + "github.com/v2ray/v2ray-core/testing/assert" ) func TestCmdKey(t *testing.T) { - v2testing.Current(t) + v2testing.Current(t) - id := NewID(uuid.New()) - assert.Bool(serial.BytesLiteral(id.CmdKey()).All(0)).IsFalse() + id := NewID(uuid.New()) + assert.Bool(serial.BytesLiteral(id.CmdKey()).All(0)).IsFalse() }