Update stageros.cpp

Fix if-else format and indentation