Guard against proj.Backend being nil

This commit is contained in:
Matt Ellis 2019-06-13 16:26:31 -07:00
parent f1b5fb6e0f
commit e0f7dc17cd

View file

@ -115,7 +115,9 @@ func GetCurrentCloudURL() (string, error) {
return "", errors.Wrap(err, "could not load current project")
}
url = proj.Backend.URL
if proj.Backend != nil {
url = proj.Backend.URL
}
}
if url == "" {