Skip to content

Commit aab528c

Browse files
committed
Fix ESLint errors #239
Signed-off-by: John M. Horan <[email protected]>
1 parent c44049f commit aab528c

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

assets/app/js/renderer.js

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,12 @@ $(document).ready(() => {
208208
// Get the ScanCode version and options data from the DB and populate and open the modal
209209
function getScanInfo() {
210210
return aboutCodeDB.sync
211-
.then((db) => db.Header.findById(1).then(header => {
212-
scancode_label = $('#scancode-label').find('#scancode-display');
213-
scancode_label.text('ScanCode version: ' + header.scancode_version + '\n\nScanCode options: ' + JSON.stringify(header.scancode_options, null, 2));
214-
}))
215-
.then($("#myModal").modal('show'));
211+
.then((db) => db.Header.findById(1)
212+
.then((header) => {
213+
const scancode_label = $('#scancode-label').find('#scancode-display');
214+
scancode_label.text('ScanCode version: ' + header.scancode_version + '\n\nScanCode options: ' + JSON.stringify(header.scancode_options, null, 2));
215+
}))
216+
.then($('#myModal').modal('show'));
216217
}
217218

218219
/** Loads data for all views based on the current data */

0 commit comments

Comments
 (0)