Skip to content

Commit

Permalink
Code clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
birdofpreyru committed Aug 8, 2023
1 parent 02c1137 commit 857a9de
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,6 @@ export const UPLOADS_DIR = `${WORK_DIR}/uploads`;
* https://redmine.lighttpd.net/projects/lighttpd/wiki/DebugVariables
*/
export type ErrorLogOptions = {
// "debug.log-condition-cache-handling" is not a Lighttpd config directive.
// See: https://github.com/birdofpreyru/react-native-static-server/issues/59#issuecomment-1646752111
// TODO: Remove it from the code, once double-checked with @gstrauss why it is
// mentioned in Lighttpd Wiki then?
// conditionCacheHandling?: boolean;

conditionHandling?: boolean;
fileNotFound?: boolean;
requestHandling?: boolean;
Expand Down Expand Up @@ -72,10 +66,6 @@ function errorLogConfig(errorLogOptions?: ErrorLogOptions): string {
const enable = (op: string) => {
res.push(`debug.log-${op} = "enable"`);
};

// See the comment ealier in the file.
// if (ops.conditionCacheHandling) enable('condition-cache-handling');

if (ops.conditionHandling) enable('condition-handling');
if (ops.fileNotFound) enable('file-not-found');
if (ops.requestHandling) enable('request-handling');
Expand Down

0 comments on commit 857a9de

Please sign in to comment.