Skip to content

Commit 56f15d6

Browse files
committed
chore(cleanup): reformat code
1 parent 7b4e72b commit 56f15d6

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

asyncgit/src/sync/sign.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -167,9 +167,7 @@ impl SignBuilder {
167167
)
168168
})
169169
.and_then(|signing_key| {
170-
Self::signing_key_into_path(
171-
&signing_key,
172-
)
170+
Self::signing_key_into_path(&signing_key)
173171
})?;
174172

175173
Ok(Box::new(SSHSign {
@@ -188,12 +186,12 @@ impl SignBuilder {
188186
if key_path.is_file() {
189187
Ok(key_path)
190188
} else if signing_key.starts_with("ssh-") {
191-
Ok(key_path) //TODO: write key to temp file
192-
} else {
193-
Err(SignBuilderError::SSHSigningKey(String::from(
189+
Ok(key_path) //TODO: write key to temp file
190+
} else {
191+
Err(SignBuilderError::SSHSigningKey(String::from(
194192
"ssh key could not be resolve. Either the key is not a file or the key is not a valid public ssh key",
195193
)))
196-
}
194+
}
197195
}
198196
}
199197

0 commit comments

Comments
 (0)