Correct Error Condition
This Patch Has Been Applied
Sarah@auth.lopeos.org submitted a patch request Feb 15, 2025 23:16
- Title: Correct Error Condition
- Author: Sarah Jamie Lewis <sarah@openprivacy.ca>
repo/requests.go
@@ -255,7 +255,7 @@ func (rm *RequestManager) LoadIssues(logpath string, loadfn func(hash string) (*
patchSummary.Body = template.HTML(doc.String())
issue.PatchInfo = patchSummary
- if _, err := rm.patchHandler.CheckApplied(rm.RequestIssueElement(le.Hash, issue.PatchRef)); err != nil {
+ if _, err := rm.patchHandler.CheckApplied(rm.RequestIssueElement(le.Hash, issue.PatchRef)); err == nil {
warningCallback(INFO, "This Patch Has Been Applied")
} else {
if _, err := rm.patchHandler.CheckApply(rm.RequestIssueElement(le.Hash, issue.PatchRef)); err != nil {