Skip to content

Commit

Permalink
chore: fix some function names in comment
Browse files Browse the repository at this point in the history
  • Loading branch information
cuiweiyuan committed Jan 15, 2025
1 parent 3826554 commit e16a773
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pkg/utils/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ func Unique(slice []string) []string {
return uniqueSlice
}

// containsIgnoreCase checks if the given string contains the specified substring, ignoring case.
// ContainsIgnoreCase checks if the given string contains the specified substring, ignoring case.
func ContainsIgnoreCase(s, substr string) bool {
return strings.Contains(strings.ToLower(s), strings.ToLower(substr))
}
Expand Down
4 changes: 2 additions & 2 deletions pkg/utils/ssh.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func CombineSCPPath(host, path string) string {
return path
}

// isSSHAgentAvailable checks if the SSH agent is available.
// IsSSHAgentAvailable checks if the SSH agent is available.
func IsSSHAgentAvailable() bool {
return os.Getenv("SSH_AUTH_SOCK") != ""
}
Expand All @@ -98,7 +98,7 @@ func getSSHAgent() (agent.ExtendedAgent, error) {
return sshAgent, nil
}

// ListSSHAgentIdentity returns a list of SSH identities from ssh-agent.
// ListSSHAgentIdentities returns a list of SSH identities from ssh-agent.
func ListSSHAgentIdentities() ([]string, error) {
sshAgent, err := getSSHAgent()
if err != nil {
Expand Down

0 comments on commit e16a773

Please sign in to comment.