From 4bf8bb79ce1027aa4c929072bcfe96248e352074 Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Sun, 29 Oct 2017 00:54:08 +0200 Subject: [PATCH] Removed a redundant comparison --- common/dialogs/dialog_env_var_config.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/dialogs/dialog_env_var_config.cpp b/common/dialogs/dialog_env_var_config.cpp index 4d7972dab9..fedca94b02 100644 --- a/common/dialogs/dialog_env_var_config.cpp +++ b/common/dialogs/dialog_env_var_config.cpp @@ -156,7 +156,7 @@ void DIALOG_ENV_VAR_CONFIG::PopulatePathList() bool DIALOG_ENV_VAR_CONFIG::GetPathAtIndex( unsigned int aIndex, wxString& aEnvVar, wxString& aEnvPath ) { - if( aIndex < 0 || aIndex > m_envVarMap.size() ) + if( aIndex > m_envVarMap.size() ) { return false; }