Skip to content

Commit 2e76d6b

Browse files
committed
chore: organise comments
one line is better than three
1 parent 86fb8da commit 2e76d6b

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/scanner/image/index.ts

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,12 @@ import { IPullableImage } from '../images/types';
55
import config = require('../../common/config');
66
import { IScanResult } from '../types';
77

8-
/**
9-
* Exported for testing
10-
*/
8+
// Exported for testing
119
export function removeTagFromImage(imageWithTag: string): string {
1210
return imageWithTag.split('@')[0].split(':')[0];
1311
}
1412

15-
/**
16-
* Exported for testing
17-
*/
13+
// Exported for testing
1814
export function getImageTag(imageWithTag: string): string {
1915
const imageParts: string[] = imageWithTag.split(':');
2016
if (imageParts.length === 2) { // image@sha256:hash or image:tag
@@ -24,9 +20,7 @@ export function getImageTag(imageWithTag: string): string {
2420
return '';
2521
}
2622

27-
/**
28-
* Exported for testing
29-
*/
23+
// Exported for testing
3024
export function constructStaticAnalysisOptions(
3125
fileSystemPath: string,
3226
): { staticAnalysisOptions: IStaticAnalysisOptions } {

0 commit comments

Comments
 (0)