cob: panic on badly formatted debug env var
Panic to clear to the operator something is wrong. Panic'ing like this is ok in debug mode, but must be avoided in production. Signed-off-by: Slack Coder <slackcoder@server.ky>
This commit is contained in:
parent
6b67e0571e
commit
873ce895ae
|
|
@ -247,10 +247,8 @@ where
|
|||
|
||||
#[cfg(debug_assertions)]
|
||||
if let Ok(s) = std::env::var(git::RAD_COMMIT_TIME) {
|
||||
if let Ok(v) = s.trim().parse::<i64>() {
|
||||
author.time = git_commit::author::Time::new(v, 0);
|
||||
timestamp = v;
|
||||
}
|
||||
timestamp = s.trim().parse::<i64>().unwrap();
|
||||
author.time = git_commit::author::Time::new(timestamp, 0);
|
||||
}
|
||||
|
||||
let oid = Commit::new(
|
||||
|
|
|
|||
Loading…
Reference in New Issue