aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/remind/parser.rs
diff options
context:
space:
mode:
authorJokler <jokler.contact@gmail.com>2019-07-05 15:17:24 +0200
committerJokler <jokler.contact@gmail.com>2019-07-05 15:17:24 +0200
commit9adfcd333cbcaa449dda89f53d7a5de602b9bef3 (patch)
treedf702aab6c0ef0580371452544397f1155724b0b /src/plugins/remind/parser.rs
parent3592c7b6fb2522ff57c7f312b8927eb680d6dc5c (diff)
downloadfrippy-9adfcd333cbcaa449dda89f53d7a5de602b9bef3.tar.gz
frippy-9adfcd333cbcaa449dda89f53d7a5de602b9bef3.zip
Revert "Remind: Fix invalid error when parsing repeat time"
This reverts commit 6ecb061831b251476e55906ad7f42bb8f730e2f7. The previous code was fine, this introduced a bug instead of fixing one.
Diffstat (limited to 'src/plugins/remind/parser.rs')
-rw-r--r--src/plugins/remind/parser.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/remind/parser.rs b/src/plugins/remind/parser.rs
index 91d13ab..965ad99 100644
--- a/src/plugins/remind/parser.rs
+++ b/src/plugins/remind/parser.rs
@@ -231,7 +231,7 @@ impl CommandParser {
}
let dur = parse_duration(&words).context(ErrorKind::InvalidTime)?;
- if dur <= min_dur {
+ if dur < min_dur {
return Err(ErrorKind::RepeatTimeShort.into());
}