Skip to content

Commit ab76e47

Browse files
committed
.
1 parent a31a7ab commit ab76e47

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

protocol/task_agent.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func (v *PropertyValue) UnmarshalJSON(data []byte) error {
6666

6767
type PropertiesCollection map[string]PropertyValue
6868

69-
func (c *PropertiesCollection) Lookup(name string, ty string) (interface{}, bool) {
69+
func (c *PropertiesCollection) Lookup(name, ty string) (interface{}, bool) {
7070
for k, v := range *c {
7171
if strings.EqualFold(k, name) && strings.EqualFold(v.Type, ty) {
7272
return v.Value, true
@@ -75,7 +75,7 @@ func (c *PropertiesCollection) Lookup(name string, ty string) (interface{}, bool
7575
return nil, false
7676
}
7777

78-
func (c *PropertiesCollection) LookupBool(name string) (bool, bool) {
78+
func (c *PropertiesCollection) LookupBool(name string) (value bool, ok bool) {
7979
if v, ok := c.Lookup(name, "System.Boolean"); ok && v != nil {
8080
b, isBool := v.(bool)
8181
return b, isBool

runnerconfiguration/compat/actions_runner_compat.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,6 @@ func ToRunnerInstance(fileAccess ConfigFileAccess) (*runnerconfiguration.RunnerI
180180
}
181181

182182
func FromRunnerInstance(instance *runnerconfiguration.RunnerInstance, fileAccess ConfigFileAccess) error {
183-
184183
useV2Flow, _ := instance.Agent.Properties.LookupBool("UseV2Flow")
185184
serverV2URL, _ := instance.Agent.Properties.LookupString("ServerUrlV2")
186185
agent := &DotnetAgent{

0 commit comments

Comments
 (0)