mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:18:12 +00:00
Yet another pass of style fixes.
This commit is contained in:
parent
89040cdc99
commit
ec1c487dcd
43 changed files with 183 additions and 185 deletions
|
@ -22,14 +22,14 @@ bool FileSystemPath::canonicalize(bool resolve_symbolic_links)
|
|||
if (part == ".")
|
||||
continue;
|
||||
if (part == "..") {
|
||||
if (!canonical_parts.isEmpty())
|
||||
if (!canonical_parts.is_empty())
|
||||
canonical_parts.takeLast();
|
||||
continue;
|
||||
}
|
||||
if (!part.isEmpty())
|
||||
if (!part.is_empty())
|
||||
canonical_parts.append(part);
|
||||
}
|
||||
if (canonical_parts.isEmpty()) {
|
||||
if (canonical_parts.is_empty()) {
|
||||
m_string = m_basename = "/";
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue