Skip to content

Commit cdcd272

Browse files
committed
PDFBOX-5660: remove useless code, as suggested by Valery Bokov; closes #389
git-svn-id: https://svn.apache.org/repos/asf/pdfbox/trunk@1931131 13f79535-47bb-0310-9956-ffa450edef68
1 parent 8f4d337 commit cdcd272

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

tools/src/main/java/org/apache/pdfbox/tools/TextToPDF.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -300,10 +300,7 @@ public void createPDFFromText( PDDocument doc, Reader text ) throws IOException
300300
{
301301
ff = true;
302302
word1 = word.substring(0, indexFF);
303-
if (indexFF < word.length())
304-
{
305-
word2 = word.substring(indexFF + 1);
306-
}
303+
word2 = word.substring(indexFF + 1);
307304
}
308305
// word1 is the part before ff, word2 after
309306
// both can be empty

0 commit comments

Comments
 (0)