Skip to content

Commit e72f7c4

Browse files
author
Sam Eagen
committed
Simplify plugin constructor
1 parent b03f024 commit e72f7c4

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

plugins/+buildframework/ParallelizableBuildSummaryPlugin.m

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,10 @@
99
methods
1010
function plugin = ParallelizableBuildSummaryPlugin(options)
1111
arguments
12-
options.TempFolder (1,:) string = string.empty()
12+
options.TempFolder (1,:) string = getenv("RUNNER_TEMP")
1313
end
1414

15-
if ~isempty(options.TempFolder)
16-
tempRoot = options.TempFolder;
17-
else
18-
tempRoot = getenv("RUNNER_TEMP");
19-
end
20-
21-
plugin.TempFolder = fullfile(tempRoot, "taskDetails");
15+
plugin.TempFolder = fullfile(options.TempFolder, "taskDetails");
2216
end
2317
end
2418

0 commit comments

Comments
 (0)