Browse Source

Fix gofmt problems and add gofmt to preupload checks

Test: gofmt -d .
Test: <bad change>, repo upload
Change-Id: I5ca0676461616f166a842d307c600dc50a50ec48
Dan Willemsen 7 years ago
parent
commit
78ffeea24e
2 changed files with 4 additions and 2 deletions
  1. 2 0
      PREUPLOAD.cfg
  2. 2 2
      cc/sanitize.go

+ 2 - 0
PREUPLOAD.cfg

@@ -0,0 +1,2 @@
+[Builtin Hooks]
+gofmt = true

+ 2 - 2
cc/sanitize.go

@@ -25,9 +25,9 @@ import (
 )
 
 const (
-	asanCflags = "-fno-omit-frame-pointer"
+	asanCflags  = "-fno-omit-frame-pointer"
 	asanLdflags = "-Wl,-u,__asan_preinit"
-	asanLibs = "libasan"
+	asanLibs    = "libasan"
 )
 
 type sanitizerType int