\#10 Address compiler warnings

This commit is contained in:
2023-10-30 10:36:31 -05:00
parent 5dff8927da
commit b137b57dbc
6 changed files with 29 additions and 27 deletions

View File

@@ -961,8 +961,8 @@ void sia_provider::remove_deleted_files() {
if (get_item_meta(iterator->key().ToString(), meta) == api_error::success) {
if (utils::string::to_bool(meta[META_DIRECTORY])) {
bool exists{};
auto res = is_directory(iterator->key().ToString(), exists);
if (res != api_error::success) {
if (is_directory(iterator->key().ToString(), exists) !=
api_error::success) {
continue;
}
if (not exists) {
@@ -973,8 +973,7 @@ void sia_provider::remove_deleted_files() {
}
bool exists{};
auto res = is_file(iterator->key().ToString(), exists);
if (res != api_error::success) {
if (is_file(iterator->key().ToString(), exists) != api_error::success) {
continue;
}
if (not exists) {