Code review changes
This commit is contained in:
parent
a2e6088238
commit
c799f1f73c
|
@ -42,6 +42,10 @@ function ClientTerminal(output) {
|
|||
},
|
||||
set: function (enc) {
|
||||
if (iconv.encodingExists(enc)) {
|
||||
Log.info(
|
||||
{ encoding: enc, currentEncoding: outputEncoding },
|
||||
'Setting client encoding.'
|
||||
);
|
||||
outputEncoding = enc;
|
||||
} else {
|
||||
Log.warn({ encoding: enc }, 'Unknown encoding');
|
||||
|
|
|
@ -247,13 +247,6 @@ function setClientEncoding(callingMenu, formData, extraArgs, cb) {
|
|||
const client = callingMenu.client;
|
||||
let encoding = formData.value.encoding;
|
||||
|
||||
client.log.info(
|
||||
{ encoding: encoding, currentEncoding: client.term.outputEncoding },
|
||||
'Setting client encoding.'
|
||||
);
|
||||
|
||||
encoding = encoding || client.term.outputEncoding;
|
||||
|
||||
client.term.outputEncoding = encoding;
|
||||
|
||||
return callingMenu.nextMenu(cb);
|
||||
|
|
Loading…
Reference in New Issue