We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 95afbc8 commit 7559b58Copy full SHA for 7559b58
backend/src/qp.rs
@@ -78,10 +78,8 @@ impl TryFrom<&String> for Exam {
78
Ok(Exam::Endsem)
79
} else if let Some(stripped) = value.strip_prefix("ct") {
80
if stripped.is_empty() {
81
- return Ok(Exam::CT(None));
82
- }
83
-
84
- if let Ok(i) = stripped.parse::<usize>() {
+ Ok(Exam::CT(None))
+ } else if let Ok(i) = stripped.parse::<usize>() {
85
Ok(Exam::CT(Some(i)))
86
} else {
87
Err(eyre!("Error parsing exam: Invalid class test number."))
0 commit comments