continue as it's a loop

This commit is contained in:
Louis Abel 2023-09-19 17:16:08 -07:00
parent edeb0239df
commit 162e7cea34
Signed by: label
GPG Key ID: 3331F061D1D9990E

View File

@ -660,7 +660,8 @@ func ProcessRPM(pd *data.ProcessData) (*srpmprocpb.ProcessResponse, error) {
status, _ := w.Status() status, _ := w.Status()
if !pd.ModuleMode { if !pd.ModuleMode {
if status.IsClean() { if status.IsClean() {
return nil, fmt.Errorf("No changes detected. Our downstream is up to date.") pd.Log.Printf("No changes detected. Our downstream is up to date.")
continue
} }
} }
pd.Log.Printf("successfully processed:\n%s", status) pd.Log.Printf("successfully processed:\n%s", status)
@ -1002,7 +1003,8 @@ func processRPMTagless(pd *data.ProcessData) (*srpmprocpb.ProcessResponse, error
status, err := w.Status() status, err := w.Status()
if !pd.ModuleMode { if !pd.ModuleMode {
if status.IsClean() { if status.IsClean() {
return nil, fmt.Errorf("No changes detected. Our downstream is up to date.") pd.Log.Printf("No changes detected. Our downstream is up to date.")
continue
} }
} }
pd.Log.Printf("successfully processed:\n%s", status) pd.Log.Printf("successfully processed:\n%s", status)