Skip to content

Commit

Permalink
reduce duplicate calls (#9037)
Browse files Browse the repository at this point in the history
Co-authored-by: noreply <noreply@qq.com>
  • Loading branch information
draw233 and noreply authored Dec 9, 2024
1 parent 4ea8d1f commit 4571a85
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ public void run0() {
this.waitForRunning(WATCH_INTERVAL);
for (Map.Entry<String, String> entry : currentHash.entrySet()) {
String newHash = md5Digest(entry.getKey());
if (!newHash.equals(currentHash.get(entry.getKey()))) {
if (!newHash.equals(entry.getValue())) {
entry.setValue(newHash);
listener.onChanged(entry.getKey());
}
Expand Down

0 comments on commit 4571a85

Please sign in to comment.