~mser/emote-server

71bff184be5d3cabf154a3817a9e903fbfb363c8 — Michael Serajnik 7 months ago 3affc18
chore: fix ESLint issues
2 files changed, 11 insertions(+), 10 deletions(-)

M package.json
M src/util/emotes.js
M package.json => package.json +2 -1
@@ 13,7 13,8 @@
    "url": "https://todo.sr.ht/~mser/emote-server"
  },
  "scripts": {
    "start": "node ./bin/www"
    "start": "node ./bin/www",
    "test": "eslint ."
  },
  "engines": {
    "node": ">=14.0.0 <16.0.0"

M src/util/emotes.js => src/util/emotes.js +9 -9
@@ 202,15 202,15 @@ module.exports = {

          ws
            .on('finish', () => resolve(true))
            .on('error', () => reject(false))

            switch (mimeType) {
              case 'image/gif':
                frameDataStream.pipe(ws)
                break
              case 'image/apng':
                frameDataStream.pipe(ws)
            }
            .on('error', () => reject(new Error('Failed to write file.')))

          switch (mimeType) {
            case 'image/gif':
              frameDataStream.pipe(ws)
              break
            case 'image/apng':
              frameDataStream.pipe(ws)
          }
        })
      })()