From 88ec1278ed64f41b19b65c65bade5b7bc698a4f9 Mon Sep 17 00:00:00 2001 From: Holden Oullette Date: Mon, 27 Mar 2023 08:15:01 -0700 Subject: [PATCH] fixed logic error to prevent only vsn output when running mix sobelow --- lib/mix/tasks/sobelow.ex | 2 +- lib/sobelow.ex | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/mix/tasks/sobelow.ex b/lib/mix/tasks/sobelow.ex index 8aeb96d..fc7bb05 100644 --- a/lib/mix/tasks/sobelow.ex +++ b/lib/mix/tasks/sobelow.ex @@ -182,7 +182,7 @@ defmodule Mix.Tasks.Sobelow do !is_nil(details) -> Sobelow.details() - !is_nil(version) -> + version -> Sobelow.version() true -> diff --git a/lib/sobelow.ex b/lib/sobelow.ex index 0658a8c..af11455 100644 --- a/lib/sobelow.ex +++ b/lib/sobelow.ex @@ -248,7 +248,8 @@ defmodule Sobelow do out: get_env(:out), threshold: get_env(:threshold), ignore: get_env(:ignored), - ignore_files: get_env(:ignored_files) + ignore_files: get_env(:ignored_files), + version: get_env(:version) ] yes? =