chore: indents

This commit is contained in:
Bobby 2022-08-23 15:16:02 +07:00
parent ab4f8263de
commit 96522a425f
No known key found for this signature in database
GPG Key ID: 941839794CBF5A09
2 changed files with 3 additions and 2 deletions

View File

@ -91,7 +91,7 @@ self.md.instance.renderer.rules.link_open = function (tokens, idx, options, env,
}
if (typeof config.uploads.retentionPeriods === 'object' &&
Object.keys(config.uploads.retentionPeriods).length) {
Object.keys(config.uploads.retentionPeriods).length) {
// Build a temporary index of group values
const _retentionPeriods = Object.assign({}, config.uploads.retentionPeriods)
const _groups = { _: -1 }
@ -146,7 +146,7 @@ Object.keys(config.uploads.retentionPeriods).length) {
}
}
} else if (Array.isArray(config.uploads.temporaryUploadAges) &&
config.uploads.temporaryUploadAges.length) {
config.uploads.temporaryUploadAges.length) {
self.retentions.periods._ = config.uploads.temporaryUploadAges
.filter((v, i, a) => Number.isFinite(v) && v >= 0)
self.retentions.default._ = self.retentions.periods._[0]

View File

@ -14,6 +14,7 @@ const sassCompiler = require('sass')
const sourcemaps = require('gulp-sourcemaps')
const stylelint = require('@ronilaukkarinen/gulp-stylelint')
const terser = require('gulp-terser')
let sassEmbeddedCompiler
try {
sassEmbeddedCompiler = require('sass-embedded')