🐛 Fix 'list-hosts' when empty #13
1 changed files with 2 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ export default ({
|
|||
user
|
||||
}) => {
|
||||
screenStream.stdin.write(
|
||||
user.getHosts().length === 0 ? getString('listHosts.noHosts') :
|
||||
(user.getHosts().length === 0 ? getString('listHosts.noHosts') :
|
||||
new AsciiTable()
|
||||
.setHeading('Host', 'URI')
|
||||
.addRowMatrix(user.getHosts().map(host => [
|
||||
|
|
@ -27,7 +27,7 @@ export default ({
|
|||
getString('home.hostUri', { host })
|
||||
]))
|
||||
.toString()
|
||||
.replaceAll('\n', '\r\n')
|
||||
.replaceAll('\n', '\r\n'))
|
||||
+
|
||||
'\r\n'
|
||||
);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue