No Uneeded Ternary

This commit is contained in:
Daniel Odendahl Jr
2017-08-20 20:41:31 +00:00
parent f37208e1fe
commit 841cae7179
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -28,7 +28,7 @@ module.exports = class MovieCommand extends Command {
.get('http://api.themoviedb.org/3/search/movie') .get('http://api.themoviedb.org/3/search/movie')
.query({ .query({
api_key: TMDB_KEY, api_key: TMDB_KEY,
include_adult: msg.channel.nsfw ? true : false, include_adult: msg.channel.nsfw,
query query
}); });
if (!search.body.results.length) return msg.say('No Results.'); if (!search.body.results.length) return msg.say('No Results.');
+1 -1
View File
@@ -28,7 +28,7 @@ module.exports = class TVShowCommand extends Command {
.get('http://api.themoviedb.org/3/search/tv') .get('http://api.themoviedb.org/3/search/tv')
.query({ .query({
api_key: TMDB_KEY, api_key: TMDB_KEY,
include_adult: msg.channel.nsfw ? true : false, include_adult: msg.channel.nsfw,
query query
}); });
if (!search.body.results.length) return msg.say('No Results.'); if (!search.body.results.length) return msg.say('No Results.');
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "xiaobot", "name": "xiaobot",
"version": "30.7.0", "version": "30.7.1",
"description": "Your personal server companion.", "description": "Your personal server companion.",
"main": "Shard.js", "main": "Shard.js",
"scripts": { "scripts": {