mirror of
https://github.com/golang/go
synced 2024-11-12 01:10:21 -07:00
misc/goplay: remove redundant chdir
R=ajstarks, r CC=golang-dev https://golang.org/cl/5687070
This commit is contained in:
parent
89fd4dd766
commit
5ba08f4215
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user