tidy up code formatting

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1847012 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
PJ Fanning 2018-11-20 14:31:49 +00:00
parent 96308eb512
commit c199dfc3b6
1 changed files with 4 additions and 5 deletions

View File

@ -173,8 +173,8 @@ public class XSLFPictureShape extends XSLFSimpleShape
CTBlip blip = getBlip(); CTBlip blip = getBlip();
if (blip != null) { if (blip != null) {
String link = blip.getLink(); String link = blip.getLink();
if (link.isEmpty()) return null; return (link.isEmpty()) ? null : link;
return link;} else { } else {
return null; return null;
} }
} }
@ -183,9 +183,8 @@ public class XSLFPictureShape extends XSLFSimpleShape
protected String getBlipId(){ protected String getBlipId(){
CTBlip blip = getBlip(); CTBlip blip = getBlip();
if (blip != null) { if (blip != null) {
String id = getBlip().getEmbed(); String id = blip.getEmbed();
if (id.isEmpty()) return null; return (id.isEmpty()) ? null : id;
return id;
} else { } else {
return null; return null;
} }