GetServerInfo#isNoteDbEnabled: Remove unused Config parameter
Change-Id: I2f002a4579e7f5b26e7ec0b983deddbacdf42cb3
This commit is contained in:
@@ -114,7 +114,7 @@ public class GetServerInfo implements RestReadView<ConfigResource> {
|
||||
getDownloadInfo(downloadSchemes, downloadCommands, cloneCommands,
|
||||
archiveFormats);
|
||||
info.gerrit = getGerritInfo(config, allProjectsName, allUsersName);
|
||||
info.noteDbEnabled = isNoteDbEnabled(config);
|
||||
info.noteDbEnabled = isNoteDbEnabled();
|
||||
info.plugin = getPluginInfo();
|
||||
info.sshd = getSshdInfo(config);
|
||||
info.suggest = getSuggestInfo(config);
|
||||
@@ -263,7 +263,7 @@ public class GetServerInfo implements RestReadView<ConfigResource> {
|
||||
return CharMatcher.is('/').trimTrailingFrom(docUrl) + '/';
|
||||
}
|
||||
|
||||
private boolean isNoteDbEnabled(Config cfg) {
|
||||
private boolean isNoteDbEnabled() {
|
||||
return migration.readChanges();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user