Skip to content

Commit

Permalink
clean up comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Feb 15, 2022
1 parent a64328e commit 644d3d9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions x-pack/plugins/maps/server/embeddable_migrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export const embeddableMigrations = {
attributes: moveAttribution(state as { attributes: MapSavedObjectAttributes }),
} as SerializableRecord;
} catch (e) {
// Do not fail migration for invalid layerListJSON
// Maps application can display invalid layerListJSON error when saved object is viewed
// Do not failed migration
// Maps application can display error when viewed
return state;
}
},
Expand All @@ -40,8 +40,8 @@ export const embeddableMigrations = {
attributes,
} as SerializableRecord;
} catch (e) {
// Do not fail migration for invalid layerListJSON
// Maps application can display invalid layerListJSON error when saved object is viewed
// Do not failed migration
// Maps application can display error when viewed
return state;
}
},
Expand All @@ -52,8 +52,8 @@ export const embeddableMigrations = {
attributes: setEmsTmsDefaultModes(state as { attributes: MapSavedObjectAttributes }),
} as SerializableRecord;
} catch (e) {
// Do not fail migration for invalid layerListJSON
// Maps application can display invalid layerListJSON error when saved object is viewed
// Do not failed migration
// Maps application can display error when viewed
return state;
}
},
Expand All @@ -65,8 +65,8 @@ export const embeddableMigrations = {
attributes,
} as SerializableRecord;
} catch (e) {
// Do not fail migration for invalid layerListJSON
// Maps application can display invalid layerListJSON error when saved object is viewed
// Do not failed migration
// Maps application can display error when viewed
return state;
}
},
Expand All @@ -77,8 +77,8 @@ export const embeddableMigrations = {
attributes: renameLayerTypes(state as { attributes: MapSavedObjectAttributes }),
} as SerializableRecord;
} catch (e) {
// Do not fail migration for invalid layerListJSON
// Maps application can display invalid layerListJSON error when saved object is viewed
// Do not failed migration
// Maps application can display error when viewed
return state;
}
},
Expand Down

0 comments on commit 644d3d9

Please sign in to comment.