Skip to content

Commit d0ec2f8

Browse files
removed commented code
1 parent 75d3ddc commit d0ec2f8

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

internal/wrappers/jwt-helper.go

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -79,31 +79,11 @@ func (*JWTStruct) GetAllowedEngines(featureFlagsWrapper FeatureFlagsWrapper) (al
7979

8080
// GetLicenseDetails will return all license information from AstLicense.LicenseData.AllowedEngines
8181
func (*JWTStruct) GetLicenseDetails(featureFlagsWrapper FeatureFlagsWrapper) (licenseDetails map[string]string, err error) {
82-
//flagResponse, _ := GetSpecificFeatureFlag(featureFlagsWrapper, PackageEnforcementEnabled)
8382

8483
licenseDetails = make(map[string]string)
8584

8685
// Add scan.config.plugins.standalone as true
8786
licenseDetails["scan.config.plugins.standalone"] = "true"
88-
89-
// if flagResponse.Status {
90-
// jwtStruct, err := getJwtStruct()
91-
// if err != nil {
92-
// return licenseDetails, nil // Return what we have so far if JWT validation fails
93-
// }
94-
95-
// // Return all engines from license data as true (they are allowed engines)
96-
// if jwtStruct.AstLicense.LicenseData.AllowedEngines != nil {
97-
// for _, engine := range jwtStruct.AstLicense.LicenseData.AllowedEngines {
98-
// if engine != "" {
99-
// licenseDetails[engine] = "true"
100-
// }
101-
// }
102-
// }
103-
104-
// return licenseDetails, nil
105-
// }
106-
10787
return licenseDetails, nil
10888
}
10989

0 commit comments

Comments
 (0)