Skip to content

Commit d66adc3

Browse files
Use dict.get()
1 parent 31c9243 commit d66adc3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

publish.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
# Compile the project for the platform.
4949
print("\tExporting " + project + " for " + platform[0])
5050

51-
outputDirectory = platformDirectory + (project in DIRECTORY_ADDITIONS.keys() and DIRECTORY_ADDITIONS[project] or "")
51+
outputDirectory = platformDirectory + DIRECTORY_ADDITIONS.get(project, "")
5252
buildParameters = ["dotnet", "publish",
5353
"--runtime", platform[1],
5454
"--configuration", "Release",

0 commit comments

Comments
 (0)