Skip to content

Commit

Permalink
remove useless code
Browse files Browse the repository at this point in the history
  • Loading branch information
andxu committed Sep 22, 2021
1 parent f05d459 commit 111688c
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,7 @@ protected IFunctionAppBase<?> createOrUpdateResource(final FunctionAppConfig con
final boolean newFunctionApp = !app.exists();
AppServiceConfig defaultConfig = !newFunctionApp ? fromAppService(app, app.plan()) : buildDefaultConfig(config.subscriptionId(),
config.resourceGroup(), config.appName());

mergeAppServiceConfig(config, defaultConfig);
if (config.pricingTier() == null) {
config.pricingTier(PricingTier.CONSUMPTION);
}
if (!newFunctionApp && !config.disableAppInsights()) {
// fill ai key from existing app settings
config.appInsightsKey(app.entity().getAppSettings().get(CreateOrUpdateFunctionAppTask.APPINSIGHTS_INSTRUMENTATION_KEY));
Expand Down

0 comments on commit 111688c

Please sign in to comment.