Skip to content

Commit a0ed53d

Browse files
authored
Update routers/api/v1/repo/action.go
1 parent 4c1399d commit a0ed53d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/api/v1/repo/action.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,7 @@ func DownloadArtifactRaw(ctx *context.APIContext) {
12031203
return
12041204
}
12051205
t := time.Unix(expires, 0)
1206-
if err != nil || t.Before(time.Now()) {
1206+
if t.Before(time.Now()) {
12071207
ctx.Error(http.StatusUnauthorized, "DownloadArtifactRaw", "Error link expired")
12081208
return
12091209
}

0 commit comments

Comments
 (0)