From: David ‘Bombe’ Roden Date: Wed, 25 Aug 2010 19:11:05 +0000 (+0200) Subject: Don’t warn about no files to insert when there are actually just no file options. X-Git-Tag: 0.10-rc1~85 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ea7a99cf38c27a0117df28a0a2b0ddd0b1182631;p=jSite.git Don’t warn about no files to insert when there are actually just no file options. --- diff --git a/src/de/todesbaum/jsite/application/ProjectInserter.java b/src/de/todesbaum/jsite/application/ProjectInserter.java index 756e121..9373fa4 100644 --- a/src/de/todesbaum/jsite/application/ProjectInserter.java +++ b/src/de/todesbaum/jsite/application/ProjectInserter.java @@ -439,7 +439,7 @@ public class ProjectInserter implements FileScannerListener, Runnable { } Map fileOptions = project.getFileOptions(); Set> fileOptionEntries = fileOptions.entrySet(); - boolean insert = false; + boolean insert = fileOptionEntries.isEmpty(); for (Entry fileOptionEntry : fileOptionEntries) { String fileName = fileOptionEntry.getKey(); FileOption fileOption = fileOptionEntry.getValue();