Skip to content

Commit

Permalink
minor/cosmetic changes (#7804)
Browse files Browse the repository at this point in the history
  • Loading branch information
landreev committed Oct 4, 2021
1 parent 39f32a2 commit 2183edf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public Long getUnreadNotificationCount(Long userId){
this.unreadNotificationCount = userNotificationService.getUnreadNotificationCountByUser(userId);
}catch (Exception e){
logger.warning("Error trying to retrieve unread notification count for user." + e.getMessage());
this.unreadNotificationCount = new Long("0");
this.unreadNotificationCount = 0L;
}
return this.unreadNotificationCount;
}
Expand Down
2 changes: 2 additions & 0 deletions src/main/java/edu/harvard/iq/dataverse/SettingsWrapper.java
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,8 @@ public String getDataverseSiteUrl() {
return siteUrl;
}

// OK to call SystemConfig - the value is based on a JVM option; no
// extra database lookups.
public Long getZipDownloadLimit(){
if (zipDownloadLimit == null) {
String zipLimitOption = getValueForKey(SettingsServiceBean.Key.ZipDownloadLimit);
Expand Down

0 comments on commit 2183edf

Please sign in to comment.