Skip to content

Commit

Permalink
chore: format code
Browse files Browse the repository at this point in the history
  • Loading branch information
AkinoKaede committed May 14, 2023
1 parent 49899af commit eda30b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proxy/shadowsocks/simplified/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"encoding/json"

"github.com/golang/protobuf/jsonpb"

"github.com/v2fly/v2ray-core/v5/common"
"github.com/v2fly/v2ray-core/v5/common/protocol"
"github.com/v2fly/v2ray-core/v5/common/serial"
Expand All @@ -18,7 +19,7 @@ func (c *CipherTypeWrapper) UnmarshalJSONPB(unmarshaler *jsonpb.Unmarshaler, byt
return err
}

if *&c.Value = shadowsocks.CipherFromString(method); *&c.Value == shadowsocks.CipherType_UNKNOWN {
if c.Value = shadowsocks.CipherFromString(method); c.Value == shadowsocks.CipherType_UNKNOWN {
return newError("unknown cipher method: ", method)
}

Expand Down

0 comments on commit eda30b2

Please sign in to comment.