Skip to content

Commit

Permalink
chore(pkg): fix function comment
Browse files Browse the repository at this point in the history
  • Loading branch information
polymaer committed Dec 18, 2024
1 parent c01e49b commit cea2350
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pkg/cloud/aws/aws.go
Original file line number Diff line number Diff line change
Expand Up @@ -635,7 +635,7 @@ func (c *AwsCloud) IsInstanceTypeSupported(instanceType string) (bool, error) {
return slices.Contains(supportedInstanceTypes, instanceType), nil
}

// GetRootVolume returns a volume IDs attached to the given which is used as a root volume
// GetRootVolumeID returns a volume IDs attached to the given which is used as a root volume
func (c *AwsCloud) GetRootVolumeID(instanceID string) (string, error) {
describeInstanceOutput, err := c.ec2Client.DescribeInstances(c.ctx, &ec2.DescribeInstancesInput{
InstanceIds: []string{instanceID},
Expand Down
2 changes: 1 addition & 1 deletion pkg/models/host.go
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ func (h *Host) FileExists(path string) (bool, error) {
return true, nil
}

// CreateTemp creates a temporary file on the remote server.
// CreateTempFile creates a temporary file on the remote server.
func (h *Host) CreateTempFile() (string, error) {
if !h.Connected() {
if err := h.Connect(0); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/file.go
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ func WriteStringToFile(filePath string, data string) error {
return os.WriteFile(filePath, []byte(data), constants.WriteReadReadPerms)
}

// Size returns the size of a file or directory.
// SizeInKB returns the size of a file or directory.
func SizeInKB(path string) (int64, error) {
var size int64
err := filepath.Walk(path, func(_ string, info os.FileInfo, err error) error {
Expand Down
2 changes: 1 addition & 1 deletion pkg/utils/strings.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func SplitComaSeparatedInt(s string) []int {
})
}

// SplitString split string with a rune comma ignore quoted
// SplitStringWithQuotes split string with a rune comma ignore quoted
func SplitStringWithQuotes(str string, r rune) []string {
quoted := false
return strings.FieldsFunc(str, func(r1 rune) bool {
Expand Down

0 comments on commit cea2350

Please sign in to comment.