Skip to content

Commit

Permalink
style: Fix coding style from eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Hsieh Chin Fan committed Sep 13, 2024
1 parent 7cc7ccd commit a090f84
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/BasicDrawComponent.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export const addSimpleSelector = (target, draw, options = {}) => {
});
draw.on("finish", (id, context) => {
if (context.action === 'draw') {
const feature = draw.getSnapshot().find(f => f.id == id)
const feature = draw.getSnapshot().find(feature => feature.id === id)
if (feature) {
draw.removeFeatures([id])
feature.properties.mode = "render"
Expand Down
2 changes: 1 addition & 1 deletion src/mapclay.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const parseConfigsFromYaml = (configText) => {
}
)

if (configList.length == 0) throw Error('Not a valid config file')
if (configList.length === 0) throw Error('Not a valid config file')

return configList
}
Expand Down

0 comments on commit a090f84

Please sign in to comment.