Skip to content

Commit a3b12f6

Browse files
#2910 Adjust check
1 parent a5349c5 commit a3b12f6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/main/java/org/gbif/ipt/service/manage/impl/ResourceManagerImpl.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,12 +1633,10 @@ public boolean isLocked(String shortname, BaseAction action) {
16331633
boolean onlyFileSources = isOnlyFileSources(resource);
16341634
boolean sourcesModifiedSinceLastPublication = isSourcesModifiedSinceLastPublication(resource);
16351635

1636-
if (onlyFileSources && !sourcesModifiedSinceLastPublication) {
1636+
if (skipIfNotChanged && onlyFileSources && !sourcesModifiedSinceLastPublication) {
16371637
dataOrMetadataChanged = false;
16381638

1639-
if (skipIfNotChanged) {
1640-
getTaskMessages(shortname).add(new TaskMessage(Level.INFO, "Source files has not changed since last published"));
1641-
}
1639+
getTaskMessages(shortname).add(new TaskMessage(Level.INFO, "Source files has not changed since last published"));
16421640
}
16431641

16441642
if (dataOrMetadataChanged) {

0 commit comments

Comments
 (0)