nickva commented on code in PR #4289: URL: https://github.com/apache/couchdb/pull/4289#discussion_r1039713337
########## src/couch/src/couch_server.erl: ########## @@ -416,10 +416,11 @@ all_databases(Fun, Acc0) -> true, fun(Filename, AccIn) -> NormFilename = couch_util:normpath(Filename), - case NormFilename -- NormRoot of - [$/ | RelativeFilename] -> ok; - RelativeFilename -> ok - end, + RelativeFilename = + case NormFilename -- NormRoot of + [$/ | Filename] -> Filename; Review Comment: We don't want to use `Filename` as that will have to match with already bound `Filename` from `fun(Filename, AccIn)`. Inside case clauses, we can just use a shorted variable if there is minimal chance collision, so something like `FN` perhaps? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@couchdb.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org