1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2025-01-17 23:06:30 -05:00

remove unnecessary error

This commit is contained in:
Darien Raymond 2017-02-12 13:25:30 +01:00
parent c0ea29a2ed
commit f2e149e1d0
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169
2 changed files with 1 additions and 2 deletions

View File

@ -7,7 +7,6 @@ import (
) )
var ( var (
ErrUserMissing = errors.New("User is not specified.")
ErrAccountMissing = errors.New("Account is not specified.") ErrAccountMissing = errors.New("Account is not specified.")
ErrNonMessageType = errors.New("Not a protobuf message.") ErrNonMessageType = errors.New("Not a protobuf message.")
ErrUnknownAccountType = errors.New("Unknown account type.") ErrUnknownAccountType = errors.New("Unknown account type.")

View File

@ -32,7 +32,7 @@ func NewServer(ctx context.Context, config *ServerConfig) (*Server, error) {
return nil, errors.New("Shadowsocks|Server: No space in context.") return nil, errors.New("Shadowsocks|Server: No space in context.")
} }
if config.GetUser() == nil { if config.GetUser() == nil {
return nil, protocol.ErrUserMissing return nil, errors.New("Shadowsocks|Server: User is not specified.")
} }
rawAccount, err := config.User.GetTypedAccount() rawAccount, err := config.User.GetTypedAccount()