mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core: fix warnings
This commit is contained in:
1 parent
2daa7e2034
commit
a2bbb7a0e3
6 files changed
+10
-8
No files matched your search
@@ -186,7 +186,7 @@ export default class TimePicker {
|
||||
}; // TimePicker.prototype.scope
|
||||
|
||||
parse(type, value, options) {
|
||||
let hour; let minutes; let isPM; let item; let parseValue;
|
||||
let hour; let minutes; let item; let parseValue;
|
||||
const clock = this;
|
||||
const parsingObject = {};
|
||||
if (!value || typeof value !== 'string') return value;
|
||||
@@ -219,7 +219,7 @@ export default class TimePicker {
|
||||
}
|
||||
|
||||
// Calculate it in minutes and return.
|
||||
return (isPM ? hour + 12 : hour) * MINUTES_IN_HOUR + minutes;
|
||||
return hour * MINUTES_IN_HOUR + minutes;
|
||||
}
|
||||
|
||||
nodes(isOpen) {
|
||||
|
||||
Reference in new issue
Block a user