Commit 31ba82a
committed
Check for duplicates within the submission itself
A check for duplication between the submission and the libraries already on the list was already done. However, it is
possible that submitters will add the same library twice within a single submission. This was not previously checked for.
In addition to causing confusion at a later time for people working directly with the list, it's also possible that
allowing duplicates into the list could have harmful implications for the indexer or for Library Manager itself.
So it's safest to make a check for duplicates within the submission and return a helpful error message, requiring the
submission to contain only unique libraries before accepting it.1 parent 4bbdbc1 commit 31ba82a
1 file changed
+9
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
132 | 141 | | |
133 | 142 | | |
134 | 143 | | |
| |||
0 commit comments