Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: experimental/webtry/webtry.go

Issue 244133002: Picking from the wrong end of the workspace history list. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: experimental/webtry/webtry.go
diff --git a/experimental/webtry/webtry.go b/experimental/webtry/webtry.go
index 4c0e5b0a281349ac12f1ce542bc4ea5997912eeb..73b1ae598af110ad94728223d5e9ab5036b966c1 100644
--- a/experimental/webtry/webtry.go
+++ b/experimental/webtry/webtry.go
@@ -437,7 +437,7 @@ func workspaceHandler(w http.ResponseWriter, r *http.Request) {
if len(tries) == 0 {
code = DEFAULT_SAMPLE
} else {
- code = getCode(tries[len(tries)-1].Hash)
+ code = getCode(tries[0].Hash)
}
if err := workspaceTemplate.Execute(w, Workspace{Tries: tries, Code: code, Name: name}); err != nil {
log.Printf("ERROR: Failed to expand template: %q\n", err)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698