瀏覽代碼

remove double createHttpError

Milo Schwartz 6 月之前
父節點
當前提交
f0898613a2
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      server/routers/resource/authWithPincode.ts

+ 1 - 4
server/routers/resource/authWithPincode.ts

@@ -109,10 +109,7 @@ export async function authWithPincode(
             return next(
                 createHttpError(
                     HttpCode.UNAUTHORIZED,
-                    createHttpError(
-                        HttpCode.BAD_REQUEST,
-                        "Resource has no pincode protection"
-                    )
+                    "Resource has no pincode protection"
                 )
             );
         }