Skip to content

Commit 2088aa6

Browse files
coddingtonbearphortx
authored andcommitted
[#172] Fixing an error w/r/t how I was checking if the incoming value were a string.
1 parent c900a32 commit 2088aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/requestHandler.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -991,7 +991,7 @@ export default class RequestHandler {
991991
const results: SearchResponseItem[] = [];
992992

993993
const query: string = req.query.query as string;
994-
if (!String.isString(query)) {
994+
if (!(typeof query === "string")) {
995995
return this.returnCannedResponse(res, {
996996
message: "A single '?query=' parameter is required.",
997997
errorCode: ErrorCode.InvalidSearch,

0 commit comments

Comments
 (0)