mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-18 17:05:17 +00:00
chore(console) lNewLine -> lNewLine = ''
This commit is contained in:
parent
3c49381ac4
commit
6db67e2f9e
1 changed files with 2 additions and 3 deletions
|
|
@ -106,12 +106,11 @@ var CloudCmd, Util, DOM, $, jqconsole;
|
|||
};
|
||||
|
||||
function addNewLine(pText){
|
||||
var lNewLine, n = pText && pText.length;
|
||||
var lNewLine = '',
|
||||
n = pText && pText.length;
|
||||
|
||||
if(n && pText[n-1] !== '\n')
|
||||
lNewLine = '\n';
|
||||
else
|
||||
lNewLine = '';
|
||||
|
||||
return pText + lNewLine;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue