- Sort Score
- Result 10 results
- Languages All
Results 1 - 5 of 5 for removeDuplicate (0.18 sec)
-
pkg/volume/iscsi/iscsi_util_test.go
} } func TestRemoveDuplicate(t *testing.T) { dupPortals := []string{"127.0.0.1:3260", "127.0.0.1:3260", "127.0.0.100:3260"} portals := removeDuplicate(dupPortals) want := []string{"127.0.0.1:3260", "127.0.0.100:3260"} if reflect.DeepEqual(portals, want) == false { t.Errorf("removeDuplicate: want: %s, got: %s", want, portals) } } func fakeOsStat(devicePath string) (fi os.FileInfo, err error) { var cmd os.FileInfo
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 18 09:43:07 UTC 2022 - 14.5K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi_util.go
} // Lock the target while we determine if we can safely log out or not c.plugin.targetLocks.LockKey(iqn) defer c.plugin.targetLocks.UnlockKey(iqn) portals := removeDuplicate(bkpPortal) if len(portals) == 0 { return fmt.Errorf("iscsi detach disk: failed to detach iscsi disk. Couldn't get connected portals from configurations") }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Jun 22 12:53:01 UTC 2022 - 34.1K bytes - Viewed (0) -
platforms/ide/ide/src/main/java/org/gradle/plugins/ide/eclipse/model/WtpFacet.java
protected String getDefaultResourceName() { return "defaultWtpFacet.xml"; } public void configure(List<Facet> facets) { this.facets.addAll(facets); removeDuplicates(); } private void removeDuplicates() { this.facets = Lists.newArrayList(Sets.newLinkedHashSet(facets)); } private void removeConfigurableDataFromXml() { Node xml = getXml();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 3.2K bytes - Viewed (0) -
pkg/bootstrap/config.go
extraStatTags = append(extraStatTags, tag) } } for _, tag := range strings.Split(tagAnno, ",") { if tag != "" { extraStatTags = append(extraStatTags, tag) } } extraStatTags = removeDuplicates(extraStatTags) var proxyConfigPrefixes, proxyConfigSuffixes, proxyConfigRegexps []string if config.ProxyStatsMatcher != nil { proxyConfigPrefixes = config.ProxyStatsMatcher.InclusionPrefixes
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 14 17:02:38 UTC 2024 - 27.6K bytes - Viewed (0) -
guava/src/com/google/common/collect/RegularImmutableMap.java
entries[entryIndex] = effectiveEntry; } if (duplicates != null) { // Explicit type parameters needed here to avoid a problem with nullness inference. entries = RegularImmutableMap.<K, V>removeDuplicates(entries, n, n - dupCount, duplicates); int newTableSize = Hashing.closedTableSize(entries.length, MAX_LOAD_FACTOR); if (newTableSize != tableSize) { return fromEntryArrayCheckingBucketOverflow(
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Tue May 28 18:11:09 UTC 2024 - 16.2K bytes - Viewed (0)