From 74fe33ec36c7555f1c80e337e57af85a414ef13c Mon Sep 17 00:00:00 2001 From: Scott Lamb Date: Mon, 8 Jun 2020 10:41:35 -0700 Subject: [PATCH] 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. --- ui-src/lib/views/NVRSettingsView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui-src/lib/views/NVRSettingsView.js b/ui-src/lib/views/NVRSettingsView.js index 95594ae..a0beaff 100644 --- a/ui-src/lib/views/NVRSettingsView.js +++ b/ui-src/lib/views/NVRSettingsView.js @@ -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);