Fix Quality Issues using DeepSource (#1183)

Co-authored-by: DeepSource Bot <bot@deepsource.io>
This commit is contained in:
Moulik Aggarwal
2020-09-24 20:46:20 +05:30
committed by GitHub
parent 2e423b101b
commit b2ef26600c
14 changed files with 31 additions and 13 deletions

View File

@@ -320,10 +320,10 @@ export default {
return items
},
hasFolder(item) {
return item.hasOwnProperty("item")
return Object.prototype.hasOwnProperty.call(item, "item")
},
isSubFolder(item) {
return item.hasOwnProperty("_postman_isSubFolder") && item._postman_isSubFolder
return Object.prototype.hasOwnProperty.call(item, "_postman_isSubFolder") && item._postman_isSubFolder
},
flattenPostmanItem(subFolder, subFolderGlue = " -- ") {
delete subFolder._postman_isSubFolder