Skip to content

Commit 3b32117

Browse files
authored
Use named fields instead of anonymous fields in common.Task. (#643)
Legitimate use cases for anonymous fields are few and far between. This is not one of them - we're not accessing properties of the anonymous fields directly.
1 parent 244fea2 commit 3b32117

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

task/common/values.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,13 @@ type Event struct {
4444
type Storage struct{}
4545

4646
type Task struct {
47-
Size
48-
Environment
49-
Firewall
47+
Size Size
48+
Environment Environment
49+
Firewall Firewall
5050
PermissionSet string
51-
Spot
52-
Parallelism uint16
53-
Tags map[string]string // Deprecated
51+
Spot Spot
52+
Parallelism uint16
53+
Tags map[string]string // Deprecated
5454

5555
Addresses []net.IP
5656
Status Status
@@ -72,9 +72,9 @@ type FirewallRule struct {
7272
}
7373

7474
type Environment struct {
75-
Image string
76-
Script string
77-
Variables
75+
Image string
76+
Script string
77+
Variables Variables
7878
Timeout time.Duration
7979
Directory string
8080
DirectoryOut string

0 commit comments

Comments
 (0)