fix lint warnings

pull/255/merge
Darien Raymond 8 years ago
parent c68da6a0e8
commit 7d1426ff7f
No known key found for this signature in database
GPG Key ID: 7251FFA14BB18169

@ -35,10 +35,10 @@ func (v *Account) AsAccount() (protocol.Account, error) {
log.Error("VMess: Failed to parse ID: ", err) log.Error("VMess: Failed to parse ID: ", err)
return nil, err return nil, err
} }
protoId := protocol.NewID(id) protoID := protocol.NewID(id)
return &InternalAccount{ return &InternalAccount{
ID: protoId, ID: protoID,
AlterIDs: protocol.NewAlterIDs(protoId, uint16(v.AlterId)), AlterIDs: protocol.NewAlterIDs(protoID, uint16(v.AlterId)),
Security: v.SecuritySettings.AsSecurity(), Security: v.SecuritySettings.AsSecurity(),
}, nil }, nil
} }

Loading…
Cancel
Save