Skip to content

Commit 799b269

Browse files
committed
incorrect computation of network value invalid license
1 parent efa2290 commit 799b269

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/packages/util/upgrades/quota.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ costs add).
3737
// TODO: relative path just needed in manage-*
3838

3939
import { isEmpty } from "lodash";
40-
4140
import {
4241
LicenseIdleTimeouts,
4342
LicenseIdleTimeoutsKeysOrdered,
@@ -1062,7 +1061,7 @@ export function quota_with_reasons(
10621061
// Compute the contribution to quota coming from the quota field of the site licenses.
10631062
// This is max'd with the quota computed using settings, the rest of the licenses, etc.
10641063
// The given licenses might be a subset of all, because e.g. it's sort of cheating
1065-
// to combine memory upgades of member hosting with preempt hosting, or add a small
1064+
// to combine memory upgrades of member hosting with preempt hosting, or add a small
10661065
// always_running license on top of a cheaper but larger member hosting license.
10671066
// @see select_site_licenses
10681067
//
@@ -1139,7 +1138,7 @@ export function site_license_quota(
11391138
// remember: this function is for the front-end
11401139
// if there is a dedicated VM, all other licenses are ignored and we set some quotas
11411140
// to avoid warnings and the red banner, that's all.
1142-
if (dedicated_vm != null) {
1141+
if (dedicated_vm) {
11431142
total_quota.dedicated_vm = dedicated_vm;
11441143
total_quota.member_host = true;
11451144
total_quota.network = true;

0 commit comments

Comments
 (0)