1
0
mirror of https://github.com/golang/go synced 2024-11-12 00:20:22 -07:00

misc/goplay: remove redundant chdir

R=ajstarks, r
CC=golang-dev
https://golang.org/cl/5687070
This commit is contained in:
Andrew Gerrand 2012-02-22 09:37:38 +11:00
parent 89fd4dd766
commit 5ba08f4215

View File

@ -39,12 +39,6 @@ func main() {
} }
}() }()
// go to TempDir
err := os.Chdir(os.TempDir())
if err != nil {
log.Fatal(err)
}
http.HandleFunc("/", FrontPage) http.HandleFunc("/", FrontPage)
http.HandleFunc("/compile", Compile) http.HandleFunc("/compile", Compile)
log.Fatal(http.ListenAndServe(*httpListen, nil)) log.Fatal(http.ListenAndServe(*httpListen, nil))