fix ternary condiiton
This commit is contained in:
1 parent
4d1af5e2b4
commit
1ad750e2ef
1 file changed
+2
-1
@@ -90,7 +90,8 @@ export class DockerProvider implements IStatusProvider<DockerStatusPayload> {
|
|||||||
if (partialIdMatch && !exactIdMatch) matchTypes.push("partial ID");
|
if (partialIdMatch && !exactIdMatch) matchTypes.push("partial ID");
|
||||||
|
|
||||||
if (matchTypes.length > 1) {
|
if (matchTypes.length > 1) {
|
||||||
const message = `Ambiguous container match for "${containerInput}". Matched by: ${matchTypes.join(", ")}. Using ${exactIdMatch ? "exact ID" : "exact name"} match.`;
|
const matchUsed = exactIdMatch ? "exact ID" : "exact name";
|
||||||
|
const message = `Ambiguous container match for "${containerInput}". Matched by: ${matchTypes.join(", ")}. Using ${matchUsed} match.`;
|
||||||
|
|
||||||
this.logger.warn({
|
this.logger.warn({
|
||||||
message,
|
message,
|
||||||
|
|||||||
Reference in new issue
Block a user