config_tools: reformat Board.vue
reformat Board.vue
@@ -117,7 +117,7 @@ export default {
.then((filePath) => {
if (filePath.length > 0) {
if (this.currentSelectedBoard.length > 0) {
- if (filePath != this.currentSelectedBoard) {
+ if (filePath !== this.currentSelectedBoard) {
this.showBoardOverwrite = true;
}
}
@@ -132,7 +132,7 @@ export default {
let filepath = ''
if (useNewFile) {
filepath = this.newFilePath
- if (filepath != this.currentSelectedBoard) {
+ if (filepath !== this.currentSelectedBoard) {
configurator.removeFile(this.currentSelectedBoard)
.catch((err) => alert(`${err}`))
}
@@ -161,7 +161,7 @@ export default {
.then((res) => {
let boardPath = ''
res.map((filepath) => {
- if (filepath.path.search('\\.board\\.xml') != -1) {
+ if (filepath.path.search('\\.board\\.xml') !== -1) {
boardPath = filepath.path
}
})
