window-slot: simplify get_current_location()

The NULL check on self->location is not required, since NULL is returned
otherwise anyway.
This commit is contained in:
Peter Eisenmann 2023-01-21 14:30:34 +01:00 committed by António Fernandes
parent 6e07531f7b
commit 86e80a8afa

View file

@ -476,12 +476,7 @@ nautilus_window_slot_get_current_location (NautilusWindowSlot *self)
return self->pending_location;
}
if (self->location != NULL)
{
return self->location;
}
return NULL;
return self->location;
}
static void