rkt: simplify if-else chains and spacing
rkt: simplify if-else chains and spacing

Refactors the if-else chains for readability

Fixes #2421

joshix/rkt,jakon89/rkt,joshix/rkt,matthaias/rkt,shobhit85/rkt,euank/rkt,coreos/rkt,sgotti/rkt,lucasallan/rkt,rkt/rkt,alban/rkt,jonboulle/rkt,cab105/rkt,monstermunchkin/rkt,intelsdi-x/rkt,akshaykarle/rkt,kinvolk/rkt,achanda/rkt,lucasallan/rkt,euank/rkt,shobhit85/rkt,sstabellini/rkt,monstermunchkin/rkt,ybubnov/rkt,dgonyeo/rkt,Wilybald/rkt,ybubnov/rkt,yifan-gu/rkt,yifan-gu/rocket,cab105/rkt,Shashwatsh/rkt,joshix/rkt,jonboulle/rkt,s-urbaniak/rkt,ybubnov/rkt,intelsdi-x/rkt,shobhit85/rkt,jakon89/rkt,Wilybald/rkt,mike1729/rkt,yifan-gu/rocket,lucasallan/rkt,monstermunchkin/rkt,mike1729/rkt,sgotti/rkt,coreos/rkt,mike1729/rkt,alban/rkt,Wilybald/rkt,akshaykarle/rkt,tmrts/rkt,s-urbaniak/rkt,Shashwatsh/rkt,squeed/rkt,Shashwatsh/rkt,kinvolk/rkt,alban/rkt,lucasallan/rkt,yifan-gu/rkt,kinvolk/rkt,dgonyeo/rkt,achanda/rkt,jjlakis/rkt,jjlakis/rkt,coreos/rkt,Wilybald/rkt,tmrts/rkt,rkt/rkt,nhlfr/rkt,sgotti/rkt,jakon89/rkt,tmrts/rkt,sstabellini/rkt,squeed/rkt,matthaias/rkt,matthaias/rkt,akshaykarle/rkt,nhlfr/rkt,joshix/rkt,euank/rkt,rkt/rkt,achanda/rkt,yifan-gu/rocket,kinvolk/rkt,sstabellini/rkt,intelsdi-x/rkt,rkt/rkt,yifan-gu/rkt,nhlfr/rkt,squeed/rkt,jonboulle/rkt,dgonyeo/rkt,s-urbaniak/rkt,cab105/rkt,jjlakis/rkt