From ebda5dd9d78c51b09a7eb53b6618ad203c90de72 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 4 Sep 2014 08:30:59 -0700 Subject: [PATCH] server: gofmt ui.go Lindsey, fix your editor. :) Change-Id: I12ce560a7202a5aff98d18c42a49a096fd7893da --- pkg/server/ui.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/server/ui.go b/pkg/server/ui.go index cc7185fbe..1e3ba48e6 100644 --- a/pkg/server/ui.go +++ b/pkg/server/ui.go @@ -46,8 +46,8 @@ import ( "camlistore.org/third_party/code.google.com/p/rsc/qr" fontawesomestatic "camlistore.org/third_party/fontawesome" glitchstatic "camlistore.org/third_party/glitch" + lessstatic "camlistore.org/third_party/less" reactstatic "camlistore.org/third_party/react" - lessstatic "camlistore.org/third_party/less" ) var ( @@ -63,7 +63,7 @@ var ( thumbnailPattern = regexp.MustCompile(`^thumbnail/([^/]+)(/.*)?$`) treePattern = regexp.MustCompile(`^tree/([^/]+)(/.*)?$`) closurePattern = regexp.MustCompile(`^closure/(([^/]+)(/.*)?)$`) - lessPattern = regexp.MustCompile(`^less/(.+)$`) + lessPattern = regexp.MustCompile(`^less/(.+)$`) reactPattern = regexp.MustCompile(`^react/(.+)$`) fontawesomePattern = regexp.MustCompile(`^fontawesome/(.+)$`) glitchPattern = regexp.MustCompile(`^glitch/(.+)$`) @@ -103,7 +103,7 @@ type UIHandler struct { uiDir string // if sourceRoot != "", this is sourceRoot+"/server/camlistored/ui" closureHandler http.Handler - fileLessHandler http.Handler + fileLessHandler http.Handler fileReactHandler http.Handler fileFontawesomeHandler http.Handler fileGlitchHandler http.Handler @@ -443,7 +443,7 @@ func (ui *UIHandler) ServeHTTP(rw http.ResponseWriter, req *http.Request) { ui.serveQR(rw, req) case getSuffixMatches(req, closurePattern): ui.serveClosure(rw, req) - case getSuffixMatches(req, lessPattern): + case getSuffixMatches(req, lessPattern): ui.serveFromDiskOrStatic(rw, req, lessPattern, ui.fileLessHandler, lessstatic.Files) case getSuffixMatches(req, reactPattern): ui.serveFromDiskOrStatic(rw, req, reactPattern, ui.fileReactHandler, reactstatic.Files)