Skip to content

Commit f579c88

Browse files
committed
Stop assigning inside expressions
Split compound assignments in azblobHarvestStore.js and fileHarvestStore.js into separate statements so biome's noAssignInExpressions rule passes. Removed the override that was keeping it off.
1 parent 0e42d88 commit f579c88

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

biome.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
"rules": {
3030
"recommended": true,
3131
"suspicious": {
32-
"noAssignInExpressions": "off",
3332
"noExplicitAny": "off",
3433
"noDuplicateTestHooks": "off",
3534
"noConsole": { "level": "off", "options": { "allow": ["log"] } },

providers/stores/azblobHarvestStore.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,8 @@ class AzHarvestBlobStore extends AbstractAzBlobStore {
141141
if (!tool || !toolVersion) {
142142
return result
143143
}
144-
const current = (result[tool] = result[tool] || {})
144+
result[tool] = result[tool] || {}
145+
const current = result[tool]
145146
current[toolVersion] = entry.content
146147
return result
147148
}, result)

providers/stores/fileHarvestStore.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ class FileHarvestStore extends AbstractFileStore {
113113
)
114114
return contents.reduce((result, entry) => {
115115
const { tool, toolVersion } = this._toResultCoordinatesFromStoragePath(entry.name)
116-
const current = (result[tool] = result[tool] || {})
116+
result[tool] = result[tool] || {}
117+
const current = result[tool]
117118
current[toolVersion] = entry.content
118119
return result
119120
}, {})

0 commit comments

Comments
 (0)