diff --git a/src/api/endpoints/drive/files.ts b/src/api/endpoints/drive/files.ts
index c1441c554..2600e613e 100644
--- a/src/api/endpoints/drive/files.ts
+++ b/src/api/endpoints/drive/files.ts
@@ -31,7 +31,7 @@ module.exports = (params, user, app) =>
 	if (maxIdErr) return rej('invalid max_id param');
 
 	// Check if both of since_id and max_id is specified
-	if (sinceId !== null && maxId !== null) {
+	if (sinceId && maxId) {
 		return rej('cannot set since_id and max_id');
 	}
 
diff --git a/src/api/endpoints/drive/folders.ts b/src/api/endpoints/drive/folders.ts
index 3f4a5bac0..45c0117ba 100644
--- a/src/api/endpoints/drive/folders.ts
+++ b/src/api/endpoints/drive/folders.ts
@@ -31,7 +31,7 @@ module.exports = (params, user, app) =>
 	if (maxIdErr) return rej('invalid max_id param');
 
 	// Check if both of since_id and max_id is specified
-	if (sinceId !== null && maxId !== null) {
+	if (sinceId && maxId) {
 		return rej('cannot set since_id and max_id');
 	}
 
diff --git a/src/api/endpoints/drive/stream.ts b/src/api/endpoints/drive/stream.ts
index 6ede044f5..95a7584b1 100644
--- a/src/api/endpoints/drive/stream.ts
+++ b/src/api/endpoints/drive/stream.ts
@@ -30,7 +30,7 @@ module.exports = (params, user) =>
 	if (maxIdErr) return rej('invalid max_id param');
 
 	// Check if both of since_id and max_id is specified
-	if (sinceId !== null && maxId !== null) {
+	if (sinceId && maxId) {
 		return rej('cannot set since_id and max_id');
 	}
 
diff --git a/src/api/endpoints/i/notifications.ts b/src/api/endpoints/i/notifications.ts
index 21537ea79..4f4f0780b 100644
--- a/src/api/endpoints/i/notifications.ts
+++ b/src/api/endpoints/i/notifications.ts
@@ -44,7 +44,7 @@ module.exports = (params, user) =>
 	if (maxIdErr) return rej('invalid max_id param');
 
 	// Check if both of since_id and max_id is specified
-	if (sinceId !== null && maxId !== null) {
+	if (sinceId && maxId) {
 		return rej('cannot set since_id and max_id');
 	}
 
diff --git a/src/api/endpoints/i/signin_history.ts b/src/api/endpoints/i/signin_history.ts
index db36438bf..eb8fc8c23 100644
--- a/src/api/endpoints/i/signin_history.ts
+++ b/src/api/endpoints/i/signin_history.ts
@@ -30,7 +30,7 @@ module.exports = (params, user) =>
 	if (maxIdErr) return rej('invalid max_id param');
 
 	// Check if both of since_id and max_id is specified
-	if (sinceId !== null && maxId !== null) {
+	if (sinceId && maxId) {
 		return rej('cannot set since_id and max_id');
 	}
 
diff --git a/src/api/endpoints/messaging/messages.ts b/src/api/endpoints/messaging/messages.ts
index 81562efbc..671ed2796 100644
--- a/src/api/endpoints/messaging/messages.ts
+++ b/src/api/endpoints/messaging/messages.ts
@@ -54,7 +54,7 @@ module.exports = (params, user) =>
 	if (maxIdErr) return rej('invalid max_id param');
 
 	// Check if both of since_id and max_id is specified
-	if (sinceId !== null && maxId !== null) {
+	if (sinceId && maxId) {
 		return rej('cannot set since_id and max_id');
 	}
 
diff --git a/src/api/endpoints/posts.ts b/src/api/endpoints/posts.ts
index 458f7d3de..39548d44a 100644
--- a/src/api/endpoints/posts.ts
+++ b/src/api/endpoints/posts.ts
@@ -36,7 +36,7 @@ module.exports = (params) =>
 		if (maxIdErr) return rej('invalid max_id param');
 
 		// Check if both of since_id and max_id is specified
-		if (sinceId !== null && maxId !== null) {
+		if (sinceId && maxId) {
 			return rej('cannot set since_id and max_id');
 		}
 
diff --git a/src/api/endpoints/posts/mentions.ts b/src/api/endpoints/posts/mentions.ts
index 59802c558..a190b55f1 100644
--- a/src/api/endpoints/posts/mentions.ts
+++ b/src/api/endpoints/posts/mentions.ts
@@ -36,7 +36,7 @@ module.exports = (params, user) =>
 	if (maxIdErr) return rej('invalid max_id param');
 
 	// Check if both of since_id and max_id is specified
-	if (sinceId !== null && maxId !== null) {
+	if (sinceId && maxId) {
 		return rej('cannot set since_id and max_id');
 	}
 
diff --git a/src/api/endpoints/posts/reposts.ts b/src/api/endpoints/posts/reposts.ts
index d8410b322..0c1fa9bbd 100644
--- a/src/api/endpoints/posts/reposts.ts
+++ b/src/api/endpoints/posts/reposts.ts
@@ -34,7 +34,7 @@ module.exports = (params, user) =>
 	if (maxIdErr) return rej('invalid max_id param');
 
 	// Check if both of since_id and max_id is specified
-	if (sinceId !== null && maxId !== null) {
+	if (sinceId && maxId) {
 		return rej('cannot set since_id and max_id');
 	}
 
diff --git a/src/api/endpoints/posts/timeline.ts b/src/api/endpoints/posts/timeline.ts
index 574408493..c599c4ded 100644
--- a/src/api/endpoints/posts/timeline.ts
+++ b/src/api/endpoints/posts/timeline.ts
@@ -32,7 +32,7 @@ module.exports = (params, user, app) =>
 	if (maxIdErr) return rej('invalid max_id param');
 
 	// Check if both of since_id and max_id is specified
-	if (sinceId !== null && maxId !== null) {
+	if (sinceId && maxId) {
 		return rej('cannot set since_id and max_id');
 	}
 
diff --git a/src/api/endpoints/users.ts b/src/api/endpoints/users.ts
index 74c4754fe..7f9fa69df 100644
--- a/src/api/endpoints/users.ts
+++ b/src/api/endpoints/users.ts
@@ -29,7 +29,7 @@ module.exports = (params, me) =>
 		if (maxIdErr) return rej('invalid max_id param');
 
 		// Check if both of since_id and max_id is specified
-		if (sinceId !== null && maxId !== null) {
+		if (sinceId && maxId) {
 			return rej('cannot set since_id and max_id');
 		}
 
diff --git a/src/api/endpoints/users/posts.ts b/src/api/endpoints/users/posts.ts
index 526ed1ee1..770831c42 100644
--- a/src/api/endpoints/users/posts.ts
+++ b/src/api/endpoints/users/posts.ts
@@ -51,7 +51,7 @@ module.exports = (params, me) =>
 	if (maxIdErr) return rej('invalid max_id param');
 
 	// Check if both of since_id and max_id is specified
-	if (sinceId !== null && maxId !== null) {
+	if (sinceId && maxId) {
 		return rej('cannot set since_id and max_id');
 	}