Skip to content

Commit

Permalink
[Java] Rename parameter.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeb01 committed Jul 17, 2023
1 parent 29e946c commit 53b4a7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions agrona/src/main/java/org/agrona/MarkFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -724,12 +724,12 @@ public static boolean isActive(
*/
public static void ensureMarkFileLink(final File serviceDir, final File actualFile, final String linkFilename)
{
final String archiveDirPath;
final String serviceDirPath;
final String markFileParentPath;

try
{
archiveDirPath = serviceDir.getCanonicalPath();
serviceDirPath = serviceDir.getCanonicalPath();
}
catch (final IOException ex)
{
Expand All @@ -746,8 +746,8 @@ public static void ensureMarkFileLink(final File serviceDir, final File actualFi
"failed to resolve canonical path for markFile parent dir of " + actualFile);
}

final Path linkFile = new File(archiveDirPath, linkFilename).toPath();
if (archiveDirPath.equals(markFileParentPath))
final Path linkFile = new File(serviceDirPath, linkFilename).toPath();
if (serviceDirPath.equals(markFileParentPath))
{
try
{
Expand Down

0 comments on commit 53b4a7b

Please sign in to comment.