Skip to content

Commit 5e62599

Browse files
committed
correct lint errors
1 parent 340ee24 commit 5e62599

3 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/components/PrimaryNavigation.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ export default {
207207
hasSubmenu(menuObject) {
208208
209209
return this.isPrimaryMenuItem(menuObject)
210-
&& menuObject.hasOwnProperty('primarySubmenu')
210+
&& Object.prototype.hasOwnProperty.call(menuObject, 'primarySubmenu')
211211
&& menuObject.primarySubmenu;
212212
},
213213
isPrimaryMenuItem(menuObject) {
214214
215-
return menuObject.hasOwnProperty('primaryNavPath');
215+
return Object.prototype.hasOwnProperty.call(menuObject, 'primaryNavPath');
216216
},
217217
toggleTouchScreenMenuDropdown(menuOption) {
218218
// This is only used for touch

src/components/cveRecordSearchModule.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ const route = useRoute();
9191
const router = useRouter();
9292
9393
const cveRecordRouteName = 'CVERecord';
94-
const invalidSearchCharacters = ref('(){}[]"\'`<>|\;!~^*+%');
94+
const invalidSearchCharacters = ref('(){}[]"\'`<>|;!~^*+%');
9595
const legacyOptionLabel = 'Find a Test CVE Record/ID (Legacy)';
9696
const searchOptionLabel = 'Search CVE List (Production Data)';
9797

src/views/CVERecord/SearchResults.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,10 +336,6 @@ function cveRecordRoute(cveId) {
336336
return recordRoute
337337
}
338338
339-
const websiteEnv = computed(() => {
340-
return import.meta.env.VITE_WEBSITE_ENVIRONMENT;
341-
});
342-
343339
let getRecordOrIdLabel = computed(() => {
344340
if (cveListSearchStore?.isArecord){
345341
return 'Record';

0 commit comments

Comments
 (0)