Skip to content

Commit ae76d4a

Browse files
committed
Cleanup redundant if condition
1 parent 96cf653 commit ae76d4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/TexturePackJob.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ class TexturePackJob : public ThreadPoolJob {
3838
if (ungzip.read(&cachedModificationTime, sizeof(cachedModificationTime)) != sizeof(cachedModificationTime)) {
3939
return false;
4040
}
41-
if (!timestamp || (timestamp && cachedModificationTime >= *timestamp)) {
41+
if (!timestamp || cachedModificationTime >= *timestamp) {
4242
pixels.reset(new juce::PixelARGB[512 * 512]);
4343
int expectedBytes = sizeof(juce::PixelARGB) * 512 * 512;
4444
if (ungzip.read(pixels.get(), expectedBytes) != expectedBytes) {

0 commit comments

Comments
 (0)