From 9f8cc456aff2aef0c73d913c6fe0c5fe887a6262 Mon Sep 17 00:00:00 2001 From: Hugo Peixoto Date: Wed, 2 Dec 2020 03:33:53 +0000 Subject: [PATCH] fight me codecov --- dist/index.js | 5 ++++- src/meta.ts | 5 +++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/dist/index.js b/dist/index.js index c6644cde..51a450dc 100644 --- a/dist/index.js +++ b/dist/index.js @@ -262,9 +262,12 @@ class Meta { if (flavor === '') { main = true; } - if (this.inputs.mainFlavor) { + else if (this.inputs.mainFlavor) { main = true; } + else { + main = false; + } let tags = []; for (const image of this.inputs.images) { const imageLc = image.toLowerCase(); diff --git a/src/meta.ts b/src/meta.ts index 760d65b6..08270b4d 100644 --- a/src/meta.ts +++ b/src/meta.ts @@ -104,9 +104,10 @@ export class Meta { let main = false; if (flavor === '') { main = true; - } - if (this.inputs.mainFlavor) { + } else if (this.inputs.mainFlavor) { main = true; + } else { + main = false; } let tags: Array = [];