Skip to content

Commit

Permalink
Fix lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
liurui-1 committed Sep 18, 2023
1 parent bb7afa3 commit 4c2a342
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export class ContainerDetector implements Detector {
const splitData = rawData.trim().split('\n');
for (const line of splitData) {
const lastSlashIdx = line.lastIndexOf('/');
if (lastSlashIdx < 0){
if (lastSlashIdx === -1){
continue;
}
const lastSection = line.substring(lastSlashIdx + 1);
Expand Down

0 comments on commit 4c2a342

Please sign in to comment.