Make linter happy
This commit is contained in:
parent
2cf060f88c
commit
55e5de5560
1 changed files with 1 additions and 2 deletions
|
@ -13,7 +13,6 @@ class Time extends Component {
|
||||||
if (!this.time) {
|
if (!this.time) {
|
||||||
this.time = Date.now();
|
this.time = Date.now();
|
||||||
}
|
}
|
||||||
console.log(this.time, this.interval);
|
|
||||||
if (!this.interval) {
|
if (!this.interval) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -35,7 +34,7 @@ class Time extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
render({ time, format }) {
|
render({ time, format }) {
|
||||||
let useFormat = format || 'ddd ddS HH:MM:ss';
|
const useFormat = format || 'ddd ddS HH:MM:ss';
|
||||||
return dateformat(new Date(time), useFormat);
|
return dateformat(new Date(time), useFormat);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue