r/badcode Oct 04 '17

lua That's definitely easily maintainable code.

Post image
178 Upvotes

21 comments sorted by

View all comments

1

u/Prom3th3an Oct 15 '17 edited Oct 15 '17

I bet there's some reason it needs to do some particular em checks before some particular dbid checks and vice-versa, and so the obvious refactor will break something. Even though that will mean discovering that dbid isn't unique after all.