Skip to content

Commit

Permalink
jcabi#39 Fixed redundant local variable
Browse files Browse the repository at this point in the history
  • Loading branch information
longtimeago committed Sep 30, 2014
1 parent b8e22b9 commit 75e6e21
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/main/java/com/jcabi/mysql/maven/plugin/Instances.java
Original file line number Diff line number Diff line change
Expand Up @@ -256,8 +256,10 @@ private File prepareFolders(final File target) throws IOException {
private File data(final File dist, final File target) throws IOException {
final File dir = new File(target, DATA_SUB_DIR);
if (!dir.exists()) {
final File support = new File(dist, "support-files");
final File cnf = new File(support, "my-default.cnf");
final File cnf = new File(
new File(dist, "support-files"),
"my-default.cnf"
);
FileUtils.writeStringToFile(
cnf,
"[mysql]\n# no defaults..."
Expand Down

0 comments on commit 75e6e21

Please sign in to comment.