Fail if formatting is wrong in our CI tests. (#4459)

We didn't fail before, we should helps in avoiding
formatting issues to creep into the codebase.
This commit is contained in:
Harshavardhana
2017-06-02 14:05:51 -07:00
committed by GitHub
parent 18c4e5d357
commit 432bf7d99e
6 changed files with 37 additions and 46 deletions
+3 -2
View File
@@ -99,7 +99,7 @@ func mustGetGatewayCredsFromEnv() (accessKey, secretKey string) {
}
// Set browser setting from environment variables
func mustSetBrowserSettingFromEnv(){
func mustSetBrowserSettingFromEnv() {
if browser := os.Getenv("MINIO_BROWSER"); browser != "" {
browserFlag, err := ParseBrowserFlag(browser)
if err != nil {
@@ -112,6 +112,7 @@ func mustSetBrowserSettingFromEnv(){
globalIsBrowserEnabled = bool(browserFlag)
}
}
// Initialize gateway layer depending on the backend type.
// Supported backend types are
//
@@ -192,7 +193,7 @@ func gatewayMain(ctx *cli.Context) {
mustSetBrowserSettingFromEnv()
// Initialize new gateway config.
newGatewayConfig(accessKey, secretKey, globalMinioDefaultRegion)
// Get quiet flag from command line argument.