Refactor: Remove unnecessary parentheses in if condition (#566)

This commit is contained in:
Clément Joly 2019-10-20 10:36:02 +02:00 committed by Matan Kushner
parent 2c7e01cd62
commit 7e21f5c6b6
1 changed files with 1 additions and 1 deletions

View File

@ -147,7 +147,7 @@ fn truncate(dir_string: String, length: usize) -> String {
let mut components = dir_string.split('/').collect::<Vec<&str>>(); let mut components = dir_string.split('/').collect::<Vec<&str>>();
// If the first element is "" then there was a leading "/" and we should remove it so we can check the actual count of components // If the first element is "" then there was a leading "/" and we should remove it so we can check the actual count of components
if (components[0] == "") { if components[0] == "" {
components.remove(0); components.remove(0);
} }