Skip to content

Commit

Permalink
fix: lint
Browse files Browse the repository at this point in the history
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
  • Loading branch information
skjnldsv committed Oct 12, 2023
1 parent 801391b commit ab6a142
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion cypress/e2e/mixins/oddname.ts
Expand Up @@ -43,7 +43,7 @@ function naughtyFileName(realName) {
}

let failsLeft = 5
Cypress.on('fail', (error, runnable) => {
Cypress.on('fail', (error) => {
failsLeft--
throw error // throw error to have test still fail
})
Expand Down
2 changes: 1 addition & 1 deletion src/components/Images.vue
Expand Up @@ -263,7 +263,7 @@ export default {
},
// Fallback to the original image if not already done
onFail(event) {
onFail() {
if (!this.fallback) {
console.error(`Loading of file preview ${basename(this.src)} failed, falling back to original file`)
this.fallback = true
Expand Down
2 changes: 1 addition & 1 deletion src/components/Videos.vue
Expand Up @@ -141,7 +141,7 @@ export default {
},
methods: {
hideHeaderAndFooter(e) {
hideHeaderAndFooter() {
// work arround to get the state of the fullscreen button, aria-selected attribute is not reliable
this.isFullscreenButtonVisible = !this.isFullscreenButtonVisible
if (this.isFullscreenButtonVisible) {
Expand Down
2 changes: 1 addition & 1 deletion src/services/Viewer.js
Expand Up @@ -102,7 +102,7 @@ export default class Viewer {
this._state.handlers.push(handler)
const handledMimes = [
...handler.mimes,
...Object.keys(handler.mimesAliases || {})
...Object.keys(handler.mimesAliases || {}),
]
this._mimetypes.push.apply(this._mimetypes, handledMimes)
if (handler?.canCompare === true) {
Expand Down
2 changes: 1 addition & 1 deletion src/utils/numberUtil.ts
Expand Up @@ -20,7 +20,7 @@
*
*/

const isNumber = function(num: any): boolean {
const isNumber = function(num): boolean {
if (!num) {
return false
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/Viewer.vue
Expand Up @@ -510,7 +510,7 @@ export default {
beforeMount() {
// register on load
document.addEventListener('DOMContentLoaded', event => {
document.addEventListener('DOMContentLoaded', () => {
// register all primary components mimes
this.handlers.forEach(handler => {
this.registerHandler(handler)
Expand Down

0 comments on commit ab6a142

Please sign in to comment.