Skip to content

Commit d104fec

Browse files
committed
use parent/child constructor instead of string concat
1 parent 67867dc commit d104fec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/microsoft/applicationinsights/extensibility/initializer/docker/internal/DockerContextPoller.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ protected DockerContextPoller(File contextFile, DockerContextFactory dockerConte
4141
}
4242

4343
public DockerContextPoller(String contextFileDirectory) {
44-
this(new File(contextFileDirectory + "/" + CONTEXT_FILE_NAME), new DockerContextFactory());
44+
this(new File(contextFileDirectory, CONTEXT_FILE_NAME), new DockerContextFactory());
4545
this.setDaemon(true);
4646
this.setName(DockerContextPoller.class.getSimpleName());
4747
}

0 commit comments

Comments
 (0)