Skip to content

Commit 9764714

Browse files
committed
Fix a code quality issue
1 parent 659e22a commit 9764714

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

src/javascript/Misc.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -132,10 +132,7 @@ export function CheckLuhnBit(Data) {
132132
let DCheck = Data[Data.byteLength - 1];
133133
let Check = GetLuhnBit(Data.subarray(0, Data.byteLength - 1));
134134

135-
if (Check == DCheck) {
136-
return true;
137-
}
138-
return false;
135+
return Check == DCheck;
139136
}
140137

141138
export function shuffle(array) {

0 commit comments

Comments
 (0)