mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-10-05 23:40:01 +00:00
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:
parent
6e07531f7b
commit
86e80a8afa
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue