Skip to content

Commit 3c44130

Browse files
cubapthehabes
andauthored
Cubap/issue165 (#183)
* addresses #165 fixes #165, but eliminates an always truthy thing * Update .gitignore --------- Co-authored-by: Bryan Haberberger <bryan.j.haberberger@slu.edu>
1 parent dc5735a commit 3c44130

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,4 @@ dist
107107
#dotenv
108108
*.env
109109
/nbproject/private/
110+
.hintrc

auth/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const isGenerator = (obj, userObj) => {
170170
* @returns Boolean for matching ID.
171171
*/
172172
const isBot = (userObj) => {
173-
return process.env.BOT_AGENT === userObj[process.env.RERUM_AGENT_CLAIM] ?? "Error"
173+
return process.env.BOT_AGENT === userObj[process.env.RERUM_AGENT_CLAIM]
174174
}
175175

176176
function READONLY(req, res, next) {

0 commit comments

Comments
 (0)