style(format): reformat code with consistent line breaks and spacing
This commit is contained in:
+4
-4
@@ -165,9 +165,7 @@ impl GitksService {
|
||||
.unwrap_or_else(|_| self.repo_prefix.clone());
|
||||
|
||||
let canonical = match candidate.canonicalize() {
|
||||
Ok(canon) => {
|
||||
canon
|
||||
}
|
||||
Ok(canon) => canon,
|
||||
Err(_) => {
|
||||
let parent = candidate.parent().unwrap_or(&self.repo_prefix);
|
||||
let filename = candidate.file_name().ok_or_else(|| {
|
||||
@@ -198,7 +196,9 @@ impl GitksService {
|
||||
));
|
||||
}
|
||||
|
||||
let double_canon = canonical.canonicalize().unwrap_or_else(|_| canonical.clone());
|
||||
let double_canon = canonical
|
||||
.canonicalize()
|
||||
.unwrap_or_else(|_| canonical.clone());
|
||||
if canonical != double_canon {
|
||||
return Err(tonic::Status::invalid_argument(
|
||||
"path resolved to different target (possible symlink race)",
|
||||
|
||||
Reference in New Issue
Block a user