Fix dead nested assignments in various modules

This commit is contained in:
Andrey Volk committed 2022-08-09 23:20:52 +03:00
1 parent e53e8a17c1
commit c47c16b1dd
34 files changed
+82 -120

No files matched your search

+2 -2
View File
@@ -435,7 +435,7 @@ SWITCH_STANDARD_APP(hash_function)
if (argc < 4) {
goto usage;
}
if (!(value = switch_core_hash_find(globals.db_hash, hash_key))) {
if (!switch_core_hash_find(globals.db_hash, hash_key)) {
switch_core_hash_insert_dup(globals.db_hash, hash_key, argv[3]);
}
@@ -507,7 +507,7 @@ SWITCH_STANDARD_API(hash_api_function)
goto usage;
}
switch_thread_rwlock_wrlock(globals.db_hash_rwlock);
if ((value = switch_core_hash_find(globals.db_hash, hash_key))) {
if (switch_core_hash_find(globals.db_hash, hash_key)) {
stream->write_function(stream, "-ERR key already exists\n");
} else {
switch_core_hash_insert_dup(globals.db_hash, hash_key, argv[3]);