no need for another variable

This commit is contained in:
Kyle Spearrin 2018-11-12 06:58:53 -05:00
parent 3ee3f1e055
commit 2709846b46
1 changed files with 2 additions and 5 deletions

View File

@ -215,11 +215,8 @@ export default class RuntimeBackground {
loginModel.username = queueMessage.username; loginModel.username = queueMessage.username;
loginModel.password = queueMessage.password; loginModel.password = queueMessage.password;
const model = new CipherView(); const model = new CipherView();
model.name = Utils.getHostname(queueMessage.uri) || queueMessage.domain;
let name = Utils.getHostname(queueMessage.uri) || queueMessage.domain; model.name = model.name.replace(/^www./, '');
name = name.replace(/^www./, '');
model.name = name;
model.type = CipherType.Login; model.type = CipherType.Login;
model.login = loginModel; model.login = loginModel;