Skip to content

Commit a9a9355

Browse files
PatOnTheBacksimonhong
authored andcommitted
Remove Identical Operand (#5050)
Added `widevineConfig.fakeWidevineCdmLibFilePath` This fixes a [warning found by lgtm](https://lgtm.com/projects/g/brave/brave-browser/snapshot/49c71729b7002b76ad3cade9853fce2f7e1ed149/files/lib/util.js?sort=name&dir=ASC&mode=heatmap). The same operand was used twice in an if statement.
1 parent e587dc3 commit a9a9355

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

build/lib/util.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,7 @@ const util = {
261261
#endif // WIDEVINE_CDM_VERSION_H_`
262262

263263
// If version file or fake lib file aren't existed, create them.
264-
if (!fs.existsSync(widevineConfig.widevineCdmHeaderFilePath) ||
265-
!fs.existsSync(widevineConfig.widevineCdmHeaderFilePath)) {
264+
if (!fs.existsSync(widevineConfig.widevineCdmHeaderFilePath) || !fs.existsSync(widevineConfig.fakeWidevineCdmLibFilePath)) {
266265
util.doPrepareWidevineCdmBuild(widevineConfig)
267266
return
268267
}

0 commit comments

Comments
 (0)