1
0
mirror of https://github.com/rancher/os.git synced 2025-09-06 01:01:43 +00:00

gofmt changes

This commit is contained in:
Darren Shepherd
2015-02-17 17:31:19 -07:00
parent c4fc978b47
commit 9f1a38f8c8
3 changed files with 10 additions and 8 deletions

View File

@@ -1,9 +1,13 @@
#!/bin/bash #!/bin/bash
set -e set -e
if [[ ! -x "$(which go)" && -x /usr/local/go/bin/go ]]; then
PATH=/usr/local/go/bin:${PATH}
fi
cd $(dirname $0)/.. cd $(dirname $0)/..
result=$(find . -name "*.go" | grep -v ./Godeps | xargs gofmt -s -l) result=$(find . -name "*.go" | grep -v ./Godeps | xargs gofmt -l)
for i in $result; do for i in $result; do
echo $i echo $i
done done

View File

@@ -18,7 +18,6 @@ var (
letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") letters = []rune("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ")
) )
func TLSConf() { func TLSConf() {
name := "rancher" name := "rancher"
bits := 2048 bits := 2048
@@ -109,7 +108,6 @@ func TLSConf() {
} }
func mountProc() error { func mountProc() error {
if _, err := os.Stat("/proc/self/mountinfo"); os.IsNotExist(err) { if _, err := os.Stat("/proc/self/mountinfo"); os.IsNotExist(err) {
if _, err := os.Stat("/proc"); os.IsNotExist(err) { if _, err := os.Stat("/proc"); os.IsNotExist(err) {