Pull request 2002: fix-typo
Squashed commit of the following: commit 29c749d1773dc7d14a2696b3dea8cf4fec2ed9fc Author: Ainar Garipov <A.Garipov@AdGuard.COM> Date: Thu Sep 7 20:06:42 2023 +0300 all: fix some typos
This commit is contained in:
parent
854c89cd4d
commit
acf539b11d
|
@ -54,7 +54,7 @@ func TestServer_handleDHCPStatus(t *testing.T) {
|
||||||
assert.JSONEq(t, b.String(), w.Body.String())
|
assert.JSONEq(t, b.String(), w.Body.String())
|
||||||
}
|
}
|
||||||
|
|
||||||
// defaultResponse is a helper that returs the response with default
|
// defaultResponse is a helper that returns the response with default
|
||||||
// configuration.
|
// configuration.
|
||||||
defaultResponse := func() *dhcpStatusResponse {
|
defaultResponse := func() *dhcpStatusResponse {
|
||||||
conf4 := defaultV4ServerConf()
|
conf4 := defaultV4ServerConf()
|
||||||
|
|
|
@ -72,7 +72,7 @@ type Entry struct {
|
||||||
Time time.Duration
|
Time time.Duration
|
||||||
}
|
}
|
||||||
|
|
||||||
// validate returs an error if entry is not valid.
|
// validate returns an error if entry is not valid.
|
||||||
func (e *Entry) validate() (err error) {
|
func (e *Entry) validate() (err error) {
|
||||||
switch {
|
switch {
|
||||||
case e.Result == 0:
|
case e.Result == 0:
|
||||||
|
@ -295,7 +295,7 @@ func loadUnitFromDB(tx *bbolt.Tx, id uint32) (udb *unitDB) {
|
||||||
return udb
|
return udb
|
||||||
}
|
}
|
||||||
|
|
||||||
// deserealize assigns the appropriate values from udb to u. u must not be nil.
|
// deserialize assigns the appropriate values from udb to u. u must not be nil.
|
||||||
// It's safe for concurrent use.
|
// It's safe for concurrent use.
|
||||||
func (u *unit) deserialize(udb *unitDB) {
|
func (u *unit) deserialize(udb *unitDB) {
|
||||||
if udb == nil {
|
if udb == nil {
|
||||||
|
|
Loading…
Reference in New Issue