We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4bbdbc1 + 31ba82a commit d1ed898Copy full SHA for d1ed898
main.go
@@ -129,6 +129,15 @@ func main() {
129
indexerLogsURLs = append(indexerLogsURLs, indexerLogsURL(submission.NormalizedURL))
130
}
131
132
+ // Check for duplicates within the submission itself.
133
+ submissionURLMap := make(map[string]bool)
134
+ for submissionIndex, submission := range req.Submissions {
135
+ submissionURLMap[submission.NormalizedURL] = true
136
+ if len(submissionURLMap) <= submissionIndex {
137
+ req.Submissions[submissionIndex].Error = "Submission contains duplicate URLs."
138
+ }
139
140
+
141
// Assemble the index entry for the submissions.
142
req.IndexEntry = strings.Join(indexEntries, "%0A")
143
0 commit comments