Skip to content

Commit

Permalink
doc: fix the word usage whether
Browse files Browse the repository at this point in the history
  • Loading branch information
cad committed Sep 1, 2017
1 parent 3adc1c7 commit 3c59a74
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions cmd/ovpm/user.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,15 +188,15 @@ var userUpdateCommand = cli.Command{
os.Exit(1)
}

// Check wether if all flags are are empty.
// Check whether if all flags are are empty.
if !(password != "" || gw || nogw || static != "" || noStatic || admin || noAdmin) {
fmt.Println("nothing is updated!")
fmt.Println()
fmt.Println(cli.ShowSubcommandHelp(c))
os.Exit(1)
}

// Given that static is set, check wether it's IPv4.
// Given that static is set, check whether it's IPv4.
if static != "" && !govalidator.IsIPv4(static) {
fmt.Println("--static flag takes a valid ipv4 address")
fmt.Println()
Expand Down
2 changes: 1 addition & 1 deletion const.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ const (
_DefaultCRLPath = varBasePath + "crl.pem"
)

// Testing is used to determine wether we are testing or running normally.
// Testing is used to determine whether we are testing or running normally.
// Set it to true when testing.
var Testing = false
2 changes: 1 addition & 1 deletion pki/pki_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func TestReadCertFromPEM(t *testing.T) {
}
}

// isPEMEncodedProperly takes an PEM encoded string s and the expected block type typ (e.g. "RSA PRIVATE KEY") and returns wether it can be decodable.
// isPEMEncodedProperly takes an PEM encoded string s and the expected block type typ (e.g. "RSA PRIVATE KEY") and returns whether it can be decodable.
func isPEMEncodedProperly(t *testing.T, s string, typ string) bool {
block, _ := pem.Decode([]byte(s))

Expand Down
2 changes: 1 addition & 1 deletion supervisor/supervisor.go
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ func NewProcess(executable string, dir string, args []string) (*Process, error)
return &p, nil
}

// isExist returns wether the given executable binary is found on the filesystem or not.
// isExist returns whether the given executable binary is found on the filesystem or not.
func isExist(executable string) bool {
if _, err := os.Stat(executable); !os.IsNotExist(err) {
return true
Expand Down
4 changes: 2 additions & 2 deletions user.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func (u *DBUser) setPassword(password string) error {
return nil
}

// CheckPassword returns wether the given password is correct for the user.
// CheckPassword returns whether the given password is correct for the user.
func (u *DBUser) CheckPassword(password string) bool {
_, err := passlib.Verify(password, u.Hash)
if err != nil {
Expand Down Expand Up @@ -356,7 +356,7 @@ func (u *DBUser) GetIPNet() string {
return ipn.String()
}

// IsNoGW returns wether user is set to get the vpn server as their default gateway.
// IsNoGW returns whether user is set to get the vpn server as their default gateway.
func (u *DBUser) IsNoGW() bool {
return u.NoGW
}
Expand Down

0 comments on commit 3c59a74

Please sign in to comment.