We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bac0477 commit 01b4880Copy full SHA for 01b4880
internal/config/profile.go
@@ -6,6 +6,8 @@
6
7
package config
8
9
+import "slices"
10
+
11
type Profile struct {
12
Network string // Cardano network name
13
Tld string // Top-level domain
@@ -19,11 +21,8 @@ type Profile struct {
19
21
func GetProfiles() []Profile {
20
22
var ret []Profile
23
for k, profile := range Profiles {
- for _, tmpProfile := range globalConfig.Profiles {
- if k == tmpProfile {
24
- ret = append(ret, profile)
25
- break
26
- }
+ if slices.Contains(globalConfig.Profiles, k) {
+ ret = append(ret, profile)
27
}
28
29
return ret
0 commit comments