Skip to content

Commit

Permalink
fix comments
Browse files Browse the repository at this point in the history
  • Loading branch information
paulyufan2 authored and jpayne3506 committed Oct 13, 2023
1 parent 861be29 commit ad3dbd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions platform/os_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,8 @@ func (p *execClient) ExecutePowershellCommand(_ string) (string, error) {
}

func (p *execClient) KillProcessByName(processName string) error {
newExecClient := NewExecClient(p.logger)
cmd := fmt.Sprintf("pkill -f %v", processName)
_, err := newExecClient.ExecuteCommand(cmd)
_, err := p.ExecuteCommand(cmd)
return err
}

Expand Down
3 changes: 1 addition & 2 deletions platform/os_windows.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,8 @@ func (p *execClient) ClearNetworkConfiguration() (bool, error) {
}

func (p *execClient) KillProcessByName(processName string) error {
newExecClient := NewExecClient(p.logger)
cmd := fmt.Sprintf("taskkill /IM %v /F", processName)
_, err := newExecClient.ExecuteCommand(cmd)
_, err := p.ExecuteCommand(cmd)
return err // nolint
}

Expand Down

0 comments on commit ad3dbd3

Please sign in to comment.