Fix file declaration
/*
- * Copyright 2006-2021 The MZmine Development Team
+ * Copyright 2006-2022 The MZmine Development Team
*
* This file is part of MZmine.
*
@@ -169,7 +169,7 @@ public class SiriusExportTask extends AbstractTask {
.replaceAll(Pattern.quote(plNamePattern), cleanPlName);
tmpFile = new File(newFilename);
}
- curFile = FileAndPathUtil.getRealFilePath(tmpFile, "mgf");
+ final File curFile = FileAndPathUtil.getRealFilePath(tmpFile, "mgf");
if (!FileAndPathUtil.createDirectory(curFile.getParentFile())) {
setErrorMessage("Could not create directories for file " + curFile + " for writing.");
