revel/revel#1057 code improvements docs, errcheck, cyclo, etc

This commit is contained in:
Jeevanandam M
2016-06-09 10:33:02 -07:00
parent 5a57eaa743
commit a5c8a8da09
14 changed files with 233 additions and 132 deletions

View File

@@ -1,3 +1,7 @@
// Copyright (c) 2012-2016 The Revel Framework Authors, All rights reserved.
// Revel Framework source code and usage is governed by a MIT style
// license that can be found in the LICENSE file.
package main
import (
@@ -37,7 +41,7 @@ func runApp(args []string) {
}
// Determine the run mode.
mode := "dev"
mode := DefaultRunMode
if len(args) >= 2 {
mode = args[1]
}