mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-11-24 06:35:49 +03:00
Fixed lint issues
no issue
This commit is contained in:
parent
f80b5289b6
commit
698261e294
@ -16,7 +16,7 @@ module.exports.create = (options = {}) => {
|
||||
'userAgent'
|
||||
);
|
||||
|
||||
if (options.hasOwnProperty('isPublic')) {
|
||||
if (Object.prototype.hasOwnProperty.call(options, 'isPublic')) {
|
||||
isPublic = options.isPublic;
|
||||
}
|
||||
|
||||
|
@ -12,11 +12,11 @@ function getFinalChangelog(options) {
|
||||
let changelog = fs.readFileSync(options.changelogPath).toString('utf8').split(os.EOL);
|
||||
let finalChangelog = [];
|
||||
|
||||
if (options.hasOwnProperty('filterEmojiCommits')) {
|
||||
if (Object.prototype.hasOwnProperty.call(options, 'filterEmojiCommits')) {
|
||||
filterEmojiCommits = options.filterEmojiCommits;
|
||||
}
|
||||
// @NOTE: optional array of string lines, which we pre-pend
|
||||
if (options.hasOwnProperty('content') && _.isArray(options.content)) {
|
||||
if (Object.prototype.hasOwnProperty.call(options, 'content') && _.isArray(options.content)) {
|
||||
finalChangelog = finalChangelog.concat(options.content);
|
||||
}
|
||||
|
||||
@ -48,11 +48,11 @@ module.exports.create = (options = {}) => {
|
||||
'releaseName'
|
||||
);
|
||||
|
||||
if (options.hasOwnProperty('draft')) {
|
||||
if (Object.prototype.hasOwnProperty.call(options, 'draft')) {
|
||||
draft = options.draft;
|
||||
}
|
||||
|
||||
if (options.hasOwnProperty('prerelease')) {
|
||||
if (Object.prototype.hasOwnProperty.call(options, 'prerelease')) {
|
||||
prerelease = options.prerelease;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user