Skip to content

Commit

Permalink
fixing PMD error
Browse files Browse the repository at this point in the history
  • Loading branch information
johnscancella committed Jan 26, 2018
1 parent 04e8d5d commit b16328d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ private static Bag bagInPlace(final Version version, final Path root, final Coll

private static void moveDataFilesIfNeeded(final Bag bag, final boolean includeHidden) throws IOException {
if(bag.getVersion().isOlder(DOT_BAGIT_VERSION)) {
Path tempDir = bag.getRootDir().resolve(System.currentTimeMillis() + ".temp");
final Path tempDir = bag.getRootDir().resolve(System.currentTimeMillis() + ".temp");
Files.createDirectory(tempDir);
moveDataFiles(bag.getRootDir(), tempDir, includeHidden);
Files.move(tempDir, PathUtils.getDataDir(bag));
Expand Down

0 comments on commit b16328d

Please sign in to comment.