Minor logic change to simplify code
Minor logic change to simplify code

MoonshineSG/OctoPrint,senttech/OctoPrint,beeverycreative/BEEweb,JackGavin13/octoprint-test-not-finished,Jaesin/OctoPrint,shohei/Octoprint,JackGavin13/octoprint-test-not-finished,Salandora/OctoPrint,bicephale/OctoPrint,shohei/Octoprint,foosel/OctoPrint,Salandora/OctoPrint,Salandora/OctoPrint,beeverycreative/BEEweb,foosel/OctoPrint,shohei/Octoprint,JackGavin13/octoprint-test-not-finished,shohei/Octoprint,senttech/OctoPrint,MoonshineSG/OctoPrint,foosel/OctoPrint,Jaesin/OctoPrint,MoonshineSG/OctoPrint,bicephale/OctoPrint,JackGavin13/octoprint-test-not-finished,beeverycreative/BEEweb,foosel/OctoPrint,Salandora/OctoPrint,senttech/OctoPrint,MoonshineSG/OctoPrint,beeverycreative/BEEweb,shohei/Octoprint,bicephale/OctoPrint,Jaesin/OctoPrint,bicephale/OctoPrint,Jaesin/OctoPrint,senttech/OctoPrint