Skip to content

Commit

Permalink
internal/civisibility: remove redundancy
Browse files Browse the repository at this point in the history
  • Loading branch information
tonyredondo committed Oct 15, 2024
1 parent deb5472 commit 62ba574
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions internal/civisibility/utils/git.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ func execGit(args ...string) ([]byte, error) {
func execGitString(args ...string) (string, error) {
out, err := execGit(args...)
strOut := strings.TrimSpace(strings.Trim(string(out), "\n"))
if err != nil {
return strOut, err
}
return strOut, err
}

Expand All @@ -86,9 +83,6 @@ func execGitStringWithInput(input string, args ...string) (string, error) {
cmd.Stdin = strings.NewReader(input)
out, err := cmd.CombinedOutput()
strOut := strings.TrimSpace(strings.Trim(string(out), "\n"))
if err != nil {
return strOut, err
}
return strOut, err
}

Expand Down

0 comments on commit 62ba574

Please sign in to comment.