From 954b02339236c796fb86da33ec43f246a4c1a561 Mon Sep 17 00:00:00 2001 From: Tom Wilkie Date: Thu, 4 Feb 2016 15:38:09 +0000 Subject: [PATCH] Correct last commit. --- lint | 2 +- runner/runner.go | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lint b/lint index a9a8b54407..89d534ba8b 100755 --- a/lint +++ b/lint @@ -35,7 +35,7 @@ function spell_check { filename="$1" local lint_result=0 - if grep -iH --color=always psueod availible "${filename}"; then + if grep -iH --color=always 'psueod\|availible' "${filename}"; then echo "${filename}: spelling mistake" lint_result=1 fi diff --git a/runner/runner.go b/runner/runner.go index 819b0ab4e3..dee4ba638a 100644 --- a/runner/runner.go +++ b/runner/runner.go @@ -63,10 +63,10 @@ func (ts tests) Less(i, j int) bool { return ts[i].name < ts[j].name } -func (ts *tests) pick(availible int) (test, bool) { - // pick the first test that fits in the availible hosts +func (ts *tests) pick(available int) (test, bool) { + // pick the first test that fits in the available hosts for i, test := range *ts { - if test.hosts <= availible { + if test.hosts <= available { *ts = append((*ts)[:i], (*ts)[i+1:]...) return test, true }