mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 20:04:09 +03:00
urbit/tree@f726ff4 add null check on shortShip
This commit is contained in:
parent
4421ccac78
commit
ea53480391
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user