From 9954086e16f4576a81ac13e2adef9f9dcbc1d414 Mon Sep 17 00:00:00 2001 From: Mike Chu Date: Tue, 15 Aug 2023 17:28:41 -0400 Subject: [PATCH] Code review changes --- OptimizelySDK.Tests/packages.config | 2 +- OptimizelySDK/Config/HttpProjectConfigManager.cs | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/OptimizelySDK.Tests/packages.config b/OptimizelySDK.Tests/packages.config index 58fe9574..4d51a3f4 100644 --- a/OptimizelySDK.Tests/packages.config +++ b/OptimizelySDK.Tests/packages.config @@ -7,4 +7,4 @@ - \ No newline at end of file + diff --git a/OptimizelySDK/Config/HttpProjectConfigManager.cs b/OptimizelySDK/Config/HttpProjectConfigManager.cs index 6decb2bf..a3f51052 100644 --- a/OptimizelySDK/Config/HttpProjectConfigManager.cs +++ b/OptimizelySDK/Config/HttpProjectConfigManager.cs @@ -202,7 +202,12 @@ protected override ProjectConfig Poll() { var datafile = GetRemoteDatafileResponse(); - return datafile == null ? null : DatafileProjectConfig.Create(datafile, Logger, ErrorHandler); + if (datafile == null) + { + return null; + } + + return DatafileProjectConfig.Create(datafile, Logger, ErrorHandler); } public class Builder