mirror of
https://github.com/scottlamb/moonfire-nvr.git
synced 2025-02-03 01:46:01 -05:00
fix lint error
eslint is strict about jsdoc and line breaks on a even one-line nested function, which is annoyingly verbose. Use an arrow function instead.
This commit is contained in:
parent
1fe5ef8e94
commit
74fe33ec36
@ -85,7 +85,7 @@ export default class NVRSettingsView {
|
||||
wireControls_() {
|
||||
const videoLengthEl = $(`#${this.ids_.videoLenId}`);
|
||||
|
||||
function normalize(v) { return v == 'infinite' ? Infinity : Number(v); }
|
||||
const normalize = (v) => v == 'infinite' ? Infinity : Number(v);
|
||||
this.videoLength_ = normalize(this.findSelectedOrFirst_(videoLengthEl));
|
||||
videoLengthEl.change((e) => {
|
||||
this.videoLength_ = normalize(e.currentTarget.value);
|
||||
|
Loading…
x
Reference in New Issue
Block a user