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

View File

@ -147,7 +147,7 @@ fn truncate(dir_string: String, length: usize) -> String {
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 (components[0] == "") {
if components[0] == "" {
components.remove(0);
}