TargetsCommand refactoring: move graphBuilder.isPresent() outside of for-loop.
TargetsCommand refactoring: move graphBuilder.isPresent() outside of for-loop.

Summary: TargetsCommand refactoring: move graphBuilder.isPresent() outside of for-loop.

Reviewed By: sbalabanov

fbshipit-source-id: 31450647ab

JoelMarcey/buck,SeleniumHQ/buck,rmaz/buck,romanoid/buck,SeleniumHQ/buck,facebook/buck,romanoid/buck,nguyentruongtho/buck,SeleniumHQ/buck,SeleniumHQ/buck,SeleniumHQ/buck,JoelMarcey/buck,JoelMarcey/buck,rmaz/buck,kageiit/buck,romanoid/buck,zpao/buck,SeleniumHQ/buck,rmaz/buck,Addepar/buck,rmaz/buck,zpao/buck,romanoid/buck,romanoid/buck,nguyentruongtho/buck,kageiit/buck,zpao/buck,SeleniumHQ/buck,JoelMarcey/buck,Addepar/buck,zpao/buck,JoelMarcey/buck,SeleniumHQ/buck,rmaz/buck,JoelMarcey/buck,JoelMarcey/buck,romanoid/buck,zpao/buck,Addepar/buck,facebook/buck,kageiit/buck,SeleniumHQ/buck,romanoid/buck,romanoid/buck,JoelMarcey/buck,facebook/buck,facebook/buck,nguyentruongtho/buck,rmaz/buck,kageiit/buck,Addepar/buck,romanoid/buck,JoelMarcey/buck,SeleniumHQ/buck,zpao/buck,romanoid/buck,romanoid/buck,facebook/buck,rmaz/buck,Addepar/buck,kageiit/buck,JoelMarcey/buck,Addepar/buck,nguyentruongtho/buck,SeleniumHQ/buck,rmaz/buck,nguyentruongtho/buck,facebook/buck,Addepar/buck,romanoid/buck,Addepar/buck,JoelMarcey/buck,romanoid/buck,rmaz/buck,kageiit/buck,kageiit/buck,Addepar/buck,Addepar/buck,JoelMarcey/buck,Addepar/buck,SeleniumHQ/buck,rmaz/buck,JoelMarcey/buck,SeleniumHQ/buck,nguyentruongtho/buck,rmaz/buck,rmaz/buck,Addepar/buck,nguyentruongtho/buck,rmaz/buck,Addepar/buck,zpao/buck,facebook/buck