mirror of https://github.com/k3s-io/k3s
check gofmt with golang 1.4
parent
4c87805870
commit
9965604d4b
|
@ -24,7 +24,7 @@ KUBE_ROOT=$(dirname "${BASH_SOURCE}")/..
|
|||
|
||||
GO_VERSION=($(go version))
|
||||
|
||||
if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.2|go1.3') ]]; then
|
||||
if [[ -z $(echo "${GO_VERSION[2]}" | grep -E 'go1.2|go1.3|go1.4') ]]; then
|
||||
echo "Unknown go version '${GO_VERSION}', skipping gofmt."
|
||||
exit 0
|
||||
fi
|
||||
|
|
|
@ -262,7 +262,7 @@ func (s *serviceStore) MergedState() interface{} {
|
|||
// watchForUpdates invokes bcaster.Notify() with the latest version of an object
|
||||
// when changes occur.
|
||||
func watchForUpdates(bcaster *config.Broadcaster, accessor config.Accessor, updates <-chan struct{}) {
|
||||
for _ = range updates {
|
||||
for range updates {
|
||||
bcaster.Notify(accessor.MergedState())
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue