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:
Scott Lamb 2020-06-08 10:41:35 -07:00
parent 1fe5ef8e94
commit 74fe33ec36

View File

@ -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);