Clean up the code
This commit is contained in:
@ -128,8 +128,7 @@ void KimQuery::command(int narg, char **arg)
|
||||
narg--;
|
||||
}
|
||||
function = arg[1];
|
||||
for (int i = 2; i < narg; ++i)
|
||||
{
|
||||
for (int i = 2; i < narg; ++i) {
|
||||
if (0 == strncmp("model=",arg[i], 6)) {
|
||||
error->all(FLERR,"Illegal 'model' key in kim_query command");
|
||||
}
|
||||
@ -269,8 +268,7 @@ char *do_query(char *qfunction, char * model_name, int narg, char **arg,
|
||||
|
||||
{
|
||||
char *env_c = std::getenv("CURL_CA_BUNDLE");
|
||||
if (env_c)
|
||||
{
|
||||
if (env_c) {
|
||||
// Certificate Verification
|
||||
// by specifying your own CA cert path. Set the environment variable
|
||||
// CURL_CA_BUNDLE to the path of your choice.
|
||||
@ -316,8 +314,7 @@ char *do_query(char *qfunction, char * model_name, int narg, char **arg,
|
||||
value[len] = '\0';
|
||||
if (0 == strcmp(value+1, "")) {
|
||||
strcpy(retval,"EMPTY");
|
||||
}
|
||||
else
|
||||
} else
|
||||
strcpy(retval,value+1);
|
||||
} else {
|
||||
retval = new char[len+2];
|
||||
|
||||
Reference in New Issue
Block a user