pi-agent: Fix final integrated review
This commit is contained in:
@@ -5,16 +5,6 @@ import (
|
||||
"proxyctl/internal/profile"
|
||||
)
|
||||
|
||||
func availableTargets(snapshot app.Snapshot) []app.TargetSnapshot {
|
||||
result := make([]app.TargetSnapshot, 0, len(snapshot.Targets))
|
||||
for _, item := range snapshot.Targets {
|
||||
if item.Available {
|
||||
result = append(result, item)
|
||||
}
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
func profileAt(snapshot app.Snapshot, index int) (profile.Profile, bool) {
|
||||
if index < 0 || index >= len(snapshot.Profiles) {
|
||||
return profile.Profile{}, false
|
||||
|
||||
Reference in New Issue
Block a user