mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-09-15 18:57:01 +00:00
review: Gusted review
This commit is contained in:
parent
9150081892
commit
ef94958cd5
4 changed files with 33 additions and 13 deletions
|
@ -28,7 +28,7 @@ func (h *Handler) validateMac(rundata cacheproxy.RunData) (string, error) {
|
|||
if hmac.Equal([]byte(expectedMAC), []byte(rundata.RepositoryMAC)) {
|
||||
return rundata.RepositoryFullName, nil
|
||||
}
|
||||
return rundata.RepositoryFullName, ErrValidation
|
||||
return "", ErrValidation
|
||||
}
|
||||
|
||||
func validateAge(ts string) bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue