src: base::Value::HasKey(key) => base::Value::FindKey(key) (#13312)
This commit is contained in:
parent
0802f82356
commit
c20e0c30a2
3 changed files with 4 additions and 4 deletions
|
@ -221,13 +221,13 @@ bool Archive::Stat(const base::FilePath& path, Stats* stats) {
|
|||
if (!GetNodeFromPath(path.AsUTF8Unsafe(), header_.get(), &node))
|
||||
return false;
|
||||
|
||||
if (node->HasKey("link")) {
|
||||
if (node->FindKey("link")) {
|
||||
stats->is_file = false;
|
||||
stats->is_link = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
if (node->HasKey("files")) {
|
||||
if (node->FindKey("files")) {
|
||||
stats->is_file = false;
|
||||
stats->is_directory = true;
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue