mirror of
https://github.com/weaveworks/scope.git
synced 2026-03-03 18:20:27 +00:00
Correct last commit.
This commit is contained in:
2
lint
2
lint
@@ -35,7 +35,7 @@ function spell_check {
|
|||||||
filename="$1"
|
filename="$1"
|
||||||
local lint_result=0
|
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"
|
echo "${filename}: spelling mistake"
|
||||||
lint_result=1
|
lint_result=1
|
||||||
fi
|
fi
|
||||||
|
|||||||
@@ -63,10 +63,10 @@ func (ts tests) Less(i, j int) bool {
|
|||||||
return ts[i].name < ts[j].name
|
return ts[i].name < ts[j].name
|
||||||
}
|
}
|
||||||
|
|
||||||
func (ts *tests) pick(availible int) (test, bool) {
|
func (ts *tests) pick(available int) (test, bool) {
|
||||||
// pick the first test that fits in the availible hosts
|
// pick the first test that fits in the available hosts
|
||||||
for i, test := range *ts {
|
for i, test := range *ts {
|
||||||
if test.hosts <= availible {
|
if test.hosts <= available {
|
||||||
*ts = append((*ts)[:i], (*ts)[i+1:]...)
|
*ts = append((*ts)[:i], (*ts)[i+1:]...)
|
||||||
return test, true
|
return test, true
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user