Commit d281fa9
committed
storage: extract id or name conflict check into function
Make it reusable for other callers, see next commit.
Also while at it remove the dedupeStrings() call, as pointed out by
Miloslav the work it is doing is more expensive than just checking the
same name several times as it does a O(1) map lookup. Also most callers
won't pass duplicated names to begin with.
Signed-off-by: Paul Holzinger <[email protected]>1 parent c46c3ae commit d281fa9
1 file changed
+19
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1422 | 1422 | | |
1423 | 1423 | | |
1424 | 1424 | | |
| 1425 | + | |
| 1426 | + | |
| 1427 | + | |
| 1428 | + | |
| 1429 | + | |
| 1430 | + | |
| 1431 | + | |
| 1432 | + | |
| 1433 | + | |
| 1434 | + | |
| 1435 | + | |
| 1436 | + | |
| 1437 | + | |
| 1438 | + | |
| 1439 | + | |
| 1440 | + | |
| 1441 | + | |
1425 | 1442 | | |
1426 | 1443 | | |
1427 | 1444 | | |
| |||
1444 | 1461 | | |
1445 | 1462 | | |
1446 | 1463 | | |
1447 | | - | |
1448 | | - | |
1449 | | - | |
1450 | | - | |
1451 | | - | |
1452 | | - | |
1453 | | - | |
1454 | | - | |
| 1464 | + | |
| 1465 | + | |
1455 | 1466 | | |
1456 | 1467 | | |
1457 | 1468 | | |
| |||
0 commit comments