aboutsummaryrefslogtreecommitdiffstats
path: root/examples/latest
diff options
context:
space:
mode:
Diffstat (limited to 'examples/latest')
-rw-r--r--examples/latest/latest.go7
1 files changed, 2 insertions, 5 deletions
diff --git a/examples/latest/latest.go b/examples/latest/latest.go
index de927fa..05f583a 100644
--- a/examples/latest/latest.go
+++ b/examples/latest/latest.go
@@ -11,12 +11,9 @@ func main() {
url := os.Args[1]
fmt.Printf("Retrieving latest commit from: %q ...\n", url)
- r, err := git.NewMemoryRepository()
- if err != nil {
- panic(err)
- }
+ r := git.NewMemoryRepository()
- if err = r.Clone(&git.RepositoryCloneOptions{URL: url}); err != nil {
+ if err := r.Clone(&git.CloneOptions{URL: url}); err != nil {
panic(err)
}