Skip to content

Commit a481bb9

Browse files
committed
Fix typos caught by codespell
1 parent 59e1b54 commit a481bb9

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

kxd/hook.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func RunHook(kc *KeyConfig, req *Request, chains [][]*x509.Certificate) error {
3434
cmd.Dir = *dataDir
3535

3636
// Prepare the environment, copying some common variables so the hook has
37-
// someting reasonable, and then setting the specific ones for this case.
37+
// something reasonable, and then setting the specific ones for this case.
3838
for _, v := range strings.Fields("USER PWD SHELL PATH") {
3939
cmd.Env = append(cmd.Env, v+"="+os.Getenv(v))
4040
}

kxd/key_config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ func (kc *KeyConfig) LoadAllowedHosts() error {
107107

108108
// If the file is there, we want our array to exist, even if it's
109109
// empty, to avoid authorizing everyone on an empty file (which means
110-
// authorize noone).
110+
// authorize no one).
111111
kc.allowedHosts = make([]string, 1)
112112
for _, line := range strings.Split(string(contents), "\n") {
113113
line = strings.TrimSpace(line)

scripts/init.d/kxd

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
DAEMON=/usr/bin/kxd
1414
DEFAULTS_FILE=/etc/default/kxd
1515

16-
# These variables can be overriden in the defaults file.
16+
# These variables can be overridden in the defaults file.
1717
DISABLE=
1818
OPTS=''
1919
PID_FILE=/var/run/kxd.pid

tests/run_tests

+1-1
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ class TestCase(unittest.TestCase):
303303

304304

305305
class Simple(TestCase):
306-
"""Simple test cases for common (mis)configurations."""
306+
"""Simple test cases for common configurations and errors."""
307307

308308
def test_simple(self):
309309
# There's no need to split these up; by doing all these within a

0 commit comments

Comments
 (0)