Delete a useless variable in src/object.c

In commit 81e55ec0, the last return statement:

   return bothsds ? sdscmp(astr,bstr) : strcmp(astr,bstr);

was deleted, which result in the variable 'bothsds' to be useless.

This patch clean up the useless variable and correct the compiler
warning.