In this case, saveAndEndAnnotating() is calling another function called saveAnnotation(), which is already configured to use 0 for failure and 1 for success. This is just evaluating the int returned from that function. That said, i would rather avoid modifying that logic/code if its not necessary.