forked from MapComplete/MapComplete
Auto-formatting
This commit is contained in:
parent
9e000d521f
commit
fed4cff878
26 changed files with 360 additions and 304 deletions
|
@ -49,11 +49,12 @@ export default class DeleteConfig {
|
|||
}
|
||||
})
|
||||
|
||||
if(!json.omitDefaultDeleteReasons ){
|
||||
if (!json.omitDefaultDeleteReasons) {
|
||||
for (const defaultDeleteReason of DeleteConfig.defaultDeleteReasons) {
|
||||
this.deleteReasons.push({
|
||||
changesetMessage: defaultDeleteReason.changesetMessage,
|
||||
explanation: defaultDeleteReason.explanation.Clone(/*Must clone, hides translation otherwise*/)
|
||||
explanation:
|
||||
defaultDeleteReason.explanation.Clone(/*Must clone, hides translation otherwise*/),
|
||||
})
|
||||
}
|
||||
}
|
||||
|
@ -66,8 +67,12 @@ export default class DeleteConfig {
|
|||
}
|
||||
})
|
||||
|
||||
if(this.nonDeleteMappings.length + this.deleteReasons.length == 0){
|
||||
throw "At "+context+": a deleteconfig should have some reasons to delete: either the default delete reasons or a nonDeleteMapping or extraDeletereason should be given"
|
||||
if (this.nonDeleteMappings.length + this.deleteReasons.length == 0) {
|
||||
throw (
|
||||
"At " +
|
||||
context +
|
||||
": a deleteconfig should have some reasons to delete: either the default delete reasons or a nonDeleteMapping or extraDeletereason should be given"
|
||||
)
|
||||
}
|
||||
|
||||
this.softDeletionTags = undefined
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue