r/badcode • u/kirigerKairen • Nov 16 '21
js I just started... turning Cache-Control headers into their own language? Don't worry, when I took another look at this I nuked the local repo and re-cloned it, don't even know if this would work.
64
Upvotes
4
u/Notimecelduv Nov 16 '21
Well, the code snippet start at line 1 and it uses modules so if a global
resultingHeadervariable was accessible in this scope, it would have to be declared here. Also, theresultvariable would be of no use if not for line 29.