Using variable

This commit is contained in:
Joakim Erdfelt 2022-09-06 14:51:26 -05:00
parent 9a553e1787
commit 02b03b1058
No known key found for this signature in database
GPG Key ID: 2D0E1FB8FE4B68B4
1 changed files with 2 additions and 2 deletions

View File

@ -1074,7 +1074,7 @@ public class BufferUtil
Path path = resource.getPath();
if (path == null)
return null;
return toMappedBuffer(resource.getPath());
return toMappedBuffer(path);
}
public static ByteBuffer toMappedBuffer(Resource resource, long pos, long len) throws IOException
@ -1082,7 +1082,7 @@ public class BufferUtil
Path path = resource.getPath();
if (path == null)
return null;
return toMappedBuffer(resource.getPath(), pos, len);
return toMappedBuffer(path, pos, len);
}
public static String toSummaryString(ByteBuffer buffer)