Skip to content

Commit

Permalink
remove unneeded string clean up and logging
Browse files Browse the repository at this point in the history
  • Loading branch information
maxgrossman committed Sep 24, 2017
1 parent 7d23125 commit b6d5740
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion js/insert-into-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ function insertIntoTable (feature, admin, st, db) {
name_vn: properties.vn_name
})
.into('admin_boundaries')
.then(() => {console.log(new Date())})
.then(() => {});
})
.catch((e) => {
console.log(e);
Expand Down
2 changes: 0 additions & 2 deletions js/simplify-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,6 @@ function cleanName(name, admin) {
cleanName = name.replace('Tt. ', '')
} else if (new RegExp(/TP./).test(name)) {
cleanName = name.replace(/TP./, '')
if (new RegExp(/Ho Chi M/)) { cleanName = cleanName + `in`}
if (new RegExp(/Phon/)) { cleanName = cleanName + `g`}
} else if (new RegExp(/P. /).test(name)) {
cleanName = name.replace('P. ', '')
} else if (new RegExp(/ D./).test(name)){
Expand Down

0 comments on commit b6d5740

Please sign in to comment.