Skip to content

Commit cf8d44c

Browse files
authored
Merge pull request #20 from wking/replace-arg-order
main: Fix strings.Replace argument order
2 parents 4cee76b + f94dce3 commit cf8d44c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func main() {
5151
if commitRange == "" {
5252
if strings.ToLower(os.Getenv("TRAVIS")) == "true" && !*flNoTravis {
5353
if os.Getenv("TRAVIS_COMMIT_RANGE") != "" {
54-
commitRange = strings.Replace("...", "..", os.Getenv("TRAVIS_COMMIT_RANGE"), 1)
54+
commitRange = strings.Replace(os.Getenv("TRAVIS_COMMIT_RANGE"), "...", "..", 1)
5555
} else if os.Getenv("TRAVIS_COMMIT") != "" {
5656
commitRange = os.Getenv("TRAVIS_COMMIT")
5757
}

0 commit comments

Comments
 (0)