Disable survey unless survey key is defined

This commit is contained in:
Jonathan G Rennison
2023-07-08 09:47:46 +01:00
parent da21772f2d
commit 0d6940e4ca

View File

@@ -40,7 +40,7 @@ public:
constexpr static bool IsSurveyPossible()
{
#ifndef WITH_NLOHMANN_JSON
#if !(defined(WITH_NLOHMANN_JSON) && defined(SURVEY_KEY))
/* Without JSON library, we cannot send a payload; so we disable the survey. */
return false;
#else