mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 03:03:09 +02:00
fix: replace boolean function with ? : expressions
This commit is contained in:
parent
f586bead0f
commit
f7c6f8ac3d
1 changed files with 2 additions and 2 deletions
|
@ -225,7 +225,7 @@ export default class Misskey implements MegalodonInterface {
|
||||||
if (options) {
|
if (options) {
|
||||||
if (options.bot !== undefined) {
|
if (options.bot !== undefined) {
|
||||||
params = Object.assign(params, {
|
params = Object.assign(params, {
|
||||||
isBot: Boolean(options.bot)
|
isBot: options.bot.toString() === 'true' ? true : false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (options.display_name) {
|
if (options.display_name) {
|
||||||
|
@ -240,7 +240,7 @@ export default class Misskey implements MegalodonInterface {
|
||||||
}
|
}
|
||||||
if (options.locked !== undefined) {
|
if (options.locked !== undefined) {
|
||||||
params = Object.assign(params, {
|
params = Object.assign(params, {
|
||||||
isLocked: Boolean(options.locked)
|
isLocked: options.locked.toString() === 'true' ? true : false
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if (options.source) {
|
if (options.source) {
|
||||||
|
|
Loading…
Reference in a new issue