There is no need to re-check for "priv->metadata" when it just got assigned. And if "priv->metadata" does not exist, neither does "priv->bookmarks" that is cleared at the same time
There is no need to re-check for "priv->metadata" when it just got assigned. And if "priv->metadata" does not exist, neither does "priv->bookmarks" that is cleared at the same time