junebug12851/pokered-save-editor

View on GitHub
src/app/data/savefile-expanded/sections/World/WorldTowns.ts

Summary

Maintainability
A
0 mins
Test Coverage

Showing 1 of 2 total issues

Similar blocks of code found in 4 locations. Consider refactoring.
Invalid

export class WorldTowns {
constructor(saveFile?: SaveFileService) {
if (saveFile !== undefined)
this.load(saveFile as SaveFileService);
}
Severity: Major
Found in src/app/data/savefile-expanded/sections/World/WorldTowns.ts and 3 other locations - About 4 hrs to fix
src/app/data/savefile-expanded/sections/World/WorldEvents.ts on lines 4..30
src/app/data/savefile-expanded/sections/World/WorldMissables.ts on lines 4..30
src/app/data/savefile-expanded/sections/World/WorldTrades.ts on lines 4..30

if statements must be braced
Open

if (saveFile !== undefined)
this.load(saveFile as SaveFileService);

There are no issues that match your filters.

Category
Status