mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
Fix typo
This commit is contained in:
@@ -142,8 +142,8 @@ public class BootstrapContextListener implements ServletContextListener {
|
||||
Throwable startupError = SCMContext.getContext().getStartupError();
|
||||
if (startupError != null) {
|
||||
contextListener = SingleView.error(startupError);
|
||||
} else if (Versions.isToOld()) {
|
||||
contextListener = SingleView.view("/templates/to-old.mustache", HttpServletResponse.SC_CONFLICT);
|
||||
} else if (Versions.isTooOld()) {
|
||||
contextListener = SingleView.view("/templates/too-old.mustache", HttpServletResponse.SC_CONFLICT);
|
||||
} else {
|
||||
createMigrationOrNormalContextListener();
|
||||
Versions.writeNew();
|
||||
|
||||
@@ -29,7 +29,7 @@ class Versions {
|
||||
}
|
||||
|
||||
@VisibleForTesting
|
||||
boolean isPreviousVersionToOld() {
|
||||
boolean isPreviousVersionTooOld() {
|
||||
return readVersion().map(v -> v.isOlder(MIN_VERSION)).orElse(false);
|
||||
}
|
||||
|
||||
@@ -66,8 +66,8 @@ class Versions {
|
||||
}
|
||||
}
|
||||
|
||||
static boolean isToOld() {
|
||||
return new Versions(SCMContext.getContext()).isPreviousVersionToOld();
|
||||
static boolean isTooOld() {
|
||||
return new Versions(SCMContext.getContext()).isPreviousVersionTooOld();
|
||||
}
|
||||
|
||||
static void writeNew() {
|
||||
|
||||
Reference in New Issue
Block a user