Skip to content

Commit

Permalink
fix: clippy warning
Browse files Browse the repository at this point in the history
removed unnecessary return
  • Loading branch information
Etto48 committed May 23, 2024
1 parent 461eae7 commit 6d0bd40
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/files/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ pub fn diff<'a>(full_path: &'a str, prefix_path: &str) -> &'a str
{
if full_path == prefix_path
{
return ".";
"."
}
else if let Some(unprefixed_path) = full_path.strip_prefix(prefix_path)
{
Expand All @@ -73,7 +73,7 @@ pub fn diff<'a>(full_path: &'a str, prefix_path: &str) -> &'a str
{
if unprefixed_path_reverse_logic.split(|c| c == '/' || c == '\\').filter(|s|!s.is_empty()).count() == 1
{
return "..";
".."
}
else
{
Expand Down

0 comments on commit 6d0bd40

Please sign in to comment.