mirror of
https://github.com/samsonjs/media.git
synced 2026-03-30 10:15:48 +00:00
Clarity improvement: Use named variables
PiperOrigin-RevId: 231425073
This commit is contained in:
parent
52ff1820df
commit
0dd305461d
1 changed files with 8 additions and 4 deletions
|
|
@ -111,12 +111,16 @@ import java.util.regex.Pattern;
|
|||
if (!matcher.matches()) {
|
||||
return null;
|
||||
}
|
||||
|
||||
int id = Integer.parseInt(matcher.group(1));
|
||||
String key = index.getKeyForId(id);
|
||||
return key == null
|
||||
? null
|
||||
: new SimpleCacheSpan(
|
||||
key, Long.parseLong(matcher.group(2)), length, Long.parseLong(matcher.group(3)), file);
|
||||
if (key == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
long position = Long.parseLong(matcher.group(2));
|
||||
long lastAccessTime = Long.parseLong(matcher.group(3));
|
||||
return new SimpleCacheSpan(key, position, length, lastAccessTime, file);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue