mirror of
https://github.com/ragestudio/linebridge.git
synced 2025-06-09 18:44:17 +00:00
added missing typeof
This commit is contained in:
parent
f5ade5c5e9
commit
5bd9c15803
@ -104,7 +104,7 @@ class Server {
|
|||||||
if (typeof endpoint.middleware !== "undefined") {
|
if (typeof endpoint.middleware !== "undefined") {
|
||||||
let query = []
|
let query = []
|
||||||
|
|
||||||
if (endpoint.middleware === "string") {
|
if (typeof endpoint.middleware === "string") {
|
||||||
query.push(endpoint.middleware)
|
query.push(endpoint.middleware)
|
||||||
}
|
}
|
||||||
if (Array.isArray(endpoint.middleware)) {
|
if (Array.isArray(endpoint.middleware)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user