Skip to content

Commit ac39bbf

Browse files
committed
Refactoring return statement
1 parent 6d2f3cb commit ac39bbf

File tree

1 file changed

+1
-5
lines changed
  • src/azure-cli/azure/cli/command_modules/resource

1 file changed

+1
-5
lines changed

src/azure-cli/azure/cli/command_modules/resource/custom.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1721,11 +1721,7 @@ def export_group_as_template(
17211721
for detail in getattr(error, 'details', None) or []:
17221722
logger.error(detail.message)
17231723

1724-
if export_format.lower() == "bicep":
1725-
return result.output
1726-
1727-
return result.template
1728-
1724+
return result.output if export_format.lower() == "bicep" else result.template
17291725

17301726
def create_application(cmd, resource_group_name,
17311727
application_name, managedby_resource_group_id,

0 commit comments

Comments
 (0)