Skip to content

Commit

Permalink
fix: BuildService 'nocache.length() == 0' can be replaced with 'nocac…
Browse files Browse the repository at this point in the history
…he.isEmpty()' (3434)

Signed-off-by: Anmol Kumar <95901518+Aknummoalr@users.noreply.github.com>
  • Loading branch information
Aknummoalr authored Oct 15, 2024
1 parent 29e545a commit 83cfcba
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ private List<String> extractBaseFromDockerfile(BuildConfiguration buildConfig, J
private boolean checkForNocache(ImageConfiguration imageConfig) {
String nocache = System.getProperty("docker.nocache");
if (nocache != null) {
return nocache.length() == 0 || Boolean.parseBoolean(nocache);
return nocache.isEmpty() || Boolean.parseBoolean(nocache);
} else {
BuildConfiguration buildConfig = imageConfig.getBuildConfiguration();
return buildConfig.nocache();
Expand Down

0 comments on commit 83cfcba

Please sign in to comment.