Skip to content

Commit

Permalink
type
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitruong922 committed Sep 23, 2024
1 parent 7c549b3 commit 3946172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/js/pages/settings/modal-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ import {Modal} from './modal.js';

export class ModalController {
/**
* @param {?(string[])} templateNames
* @param {string[] | undefined} templateNames
*/
constructor(templateNames = null) {
constructor(templateNames = undefined) {

Check failure on line 26 in ext/js/pages/settings/modal-controller.js

View workflow job for this annotation

GitHub Actions / Static Analysis

Do not use useless `undefined`

Check failure on line 26 in ext/js/pages/settings/modal-controller.js

View workflow job for this annotation

GitHub Actions / Static Analysis

Unexpected use of undefined
/** @type {Modal[]} */
this._modals = [];
/** @type {Map<string|Element, Modal>} */
Expand Down

0 comments on commit 3946172

Please sign in to comment.