urbit/tree@f726ff4 add null check on shortShip

This commit is contained in:
Anton Dyudin 2016-09-21 11:49:29 -07:00
parent 4421ccac78
commit ea53480391

View File

@ -3140,8 +3140,9 @@ module.exports = {
return path.replace(/\/$/, '').replace(_basepath, "");
},
shortShip: function(ship) {
var ref;
if (ship == null) {
ship = urb.user;
ship = (ref = urb.user) != null ? ref : "";
}
if (ship.length <= 13) {
return ship;