refactor fix after profiler patch

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
This commit is contained in:
Ahmet Alp Balkan 2018-07-16 15:09:51 -07:00
parent 9486bc24fd
commit e4664c22ea
5 changed files with 8 additions and 9 deletions

View file

@ -43,9 +43,9 @@ func main() {
// ProjectID must be set if not running on GCP.
// ProjectID: "my-project",
}); err != nil {
// TODO: Handle error.
log.Fatalf("failed to start profiler: %+v", err)
}
port := listenPort
if os.Getenv("PORT") != "" {
port = os.Getenv("PORT")