Skip to content
This repository has been archived by the owner on Nov 30, 2021. It is now read-only.

Commit

Permalink
BZ-1063436: avoid double commits by checking if file exists instead …
Browse files Browse the repository at this point in the history
…of createFile
  • Loading branch information
porcelli committed Feb 10, 2014
1 parent 11c5fdf commit 7eb7a3e
Showing 1 changed file with 0 additions and 2 deletions.
Expand Up @@ -165,8 +165,6 @@ public void delete(Path path, String comment) {
public Path createForm(Path path, String formName) {
org.uberfire.java.nio.file.Path kiePath = Paths.convert(path).resolve(formName);
try {
ioService.createFile(kiePath);

Form form = formManager.createForm(formName);

ioService.write(kiePath, formSerializationManager.generateFormXML(form));
Expand Down

0 comments on commit 7eb7a3e

Please sign in to comment.