File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -5,16 +5,12 @@ import { IPullableImage } from '../images/types';
55import config = require( '../../common/config' ) ;
66import { IScanResult } from '../types' ;
77
8- /**
9- * Exported for testing
10- */
8+ // Exported for testing
119export function removeTagFromImage ( imageWithTag : string ) : string {
1210 return imageWithTag . split ( '@' ) [ 0 ] . split ( ':' ) [ 0 ] ;
1311}
1412
15- /**
16- * Exported for testing
17- */
13+ // Exported for testing
1814export function getImageTag ( imageWithTag : string ) : string {
1915 const imageParts : string [ ] = imageWithTag . split ( ':' ) ;
2016 if ( imageParts . length === 2 ) { // image@sha 256: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
3024export function constructStaticAnalysisOptions (
3125 fileSystemPath : string ,
3226) : { staticAnalysisOptions : IStaticAnalysisOptions } {
You can’t perform that action at this time.
0 commit comments