Skip to content

Commit 4d78a97

Browse files
committed
Lint fix.
1 parent 8c4f86a commit 4d78a97

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

task/k8s/task.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,12 @@ func New(ctx context.Context, cloud common.Cloud, identifier common.Identifier,
3939
return nil, err
4040
}
4141

42-
persistentVolumeDirectory := task.Environment.Directory
43-
4442
t := new(Task)
4543
t.Client = client
4644
t.Identifier = identifier
4745
t.Attributes.Task = task
48-
t.Attributes.Directory = persistentVolumeDirectory
49-
t.Attributes.DirectoryOut = persistentVolumeDirectory
46+
t.Attributes.Directory = task.Environment.Directory
47+
t.Attributes.DirectoryOut = task.Environment.Directory
5048
if task.Environment.DirectoryOut != "" {
5149
t.Attributes.DirectoryOut = task.Environment.DirectoryOut
5250
}

0 commit comments

Comments
 (0)