- if (!isNullOrUndefined(match)) {
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
- const patchLevelIndex = match!.length - 1
- // prettier-ignore
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
- match![patchLevelIndex] = (convertToInt(match![patchLevelIndex]) +
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
- this.stationInfo.firmwareUpgrade!.versionUpgrade!.step!).toString()
- // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
- this.stationInfo.firmwareVersion = match!.join('.')
+ if (match != null) {
+ const patchLevelIndex = match.length - 1
+ match[patchLevelIndex] = (
+ convertToInt(match[patchLevelIndex]) +
+ // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
+ this.stationInfo.firmwareUpgrade!.versionUpgrade!.step!
+ ).toString()
+ this.stationInfo.firmwareVersion = match.join('.')