summary refs log tree commit diff stats
path: root/cmd/cetus-nasa/cetus-nasa.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/cetus-nasa/cetus-nasa.go')
-rw-r--r--cmd/cetus-nasa/cetus-nasa.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/cetus-nasa/cetus-nasa.go b/cmd/cetus-nasa/cetus-nasa.go
index 6610bba..0a1c91a 100644
--- a/cmd/cetus-nasa/cetus-nasa.go
+++ b/cmd/cetus-nasa/cetus-nasa.go
@@ -110,7 +110,7 @@ func printDetails(apodRes nasa.APOD) {
 		return
 	}
 	if pathOnly {
-		cetus.PrintPath(apodPhoto.HDURL)
+		cetus.PrintPath(apodRes.HDURL)
 		return
 	}
 	fmt.Printf("Title: %s\n\n", apodRes.Title)