1
0
mirror of https://github.com/rancher/os.git synced 2025-09-04 00:04:25 +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
set -e
if [[ ! -x "$(which go)" && -x /usr/local/go/bin/go ]]; then
PATH=/usr/local/go/bin:${PATH}
fi
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
echo $i
done

View File

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