mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-11 03:14:35 +02:00
No Uneeded Ternary
This commit is contained in:
@@ -28,7 +28,7 @@ module.exports = class MovieCommand extends Command {
|
||||
.get('http://api.themoviedb.org/3/search/movie')
|
||||
.query({
|
||||
api_key: TMDB_KEY,
|
||||
include_adult: msg.channel.nsfw ? true : false,
|
||||
include_adult: msg.channel.nsfw,
|
||||
query
|
||||
});
|
||||
if (!search.body.results.length) return msg.say('No Results.');
|
||||
|
||||
@@ -28,7 +28,7 @@ module.exports = class TVShowCommand extends Command {
|
||||
.get('http://api.themoviedb.org/3/search/tv')
|
||||
.query({
|
||||
api_key: TMDB_KEY,
|
||||
include_adult: msg.channel.nsfw ? true : false,
|
||||
include_adult: msg.channel.nsfw,
|
||||
query
|
||||
});
|
||||
if (!search.body.results.length) return msg.say('No Results.');
|
||||
|
||||
Reference in New Issue
Block a user