]> khamidou — GitHub mirrors - prguy.git/commitdiff
fix conditional
authorKarim Hamidou <karim@khamidou.com>
Wed, 26 Jun 2024 04:21:01 +0000 (21:21 -0700)
committerKarim Hamidou <karim@khamidou.com>
Wed, 26 Jun 2024 04:21:01 +0000 (21:21 -0700)
cmd/prguy/repos.go

index 1d1f15e43d8df849abce78d789cece852cfbad4a..513db8bccffb855eede385efee8fa985cd9d9c63 100644 (file)
@@ -63,12 +63,10 @@ func listUserPRs(token string) ([]pullRequest, []pullRequest, error) {
 
        for _, pr := range jsonData {
                reason := pr["reason"].(string)
-               if reason != "author" || reason != "review_requested" {
+               if reason != "author" && reason != "review_requested" {
                        continue
                }
 
-        fmt.Println(pr)
-
                subject := pr["subject"].(map[string]interface{})
         prAPIUrl := subject["url"].(string)
         prData, err := fetchOneRESTObject(prAPIUrl, token)