Skip to content

Commit

Permalink
chore(common): Remove redundant comment
Browse files Browse the repository at this point in the history
Signed-off-by: PrajwalCH <[email protected]>
  • Loading branch information
prajwalch committed Dec 29, 2023
1 parent 2e717b7 commit 99816db
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/common.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ pub fn build_not_found_page() -> String {
}

pub fn build_directory_listing_page(url: &str, root: &Path, path: &Path) -> io::Result<String> {
// Sort the entries so that the directories shows up first and then files.
// entries.sort_by_key(|(_, url_entry)| url_entry.fs_path.is_file());

let links = create_entry_hyperlinks(root, path)?;
let content = format!("<h1>Directory Listing for {url}</h1>\n<ul>{links}</ul>");

Expand Down

0 comments on commit 99816db

Please sign in to comment.