Skip to content

Commit 6d5f5b7

Browse files
committed
fix: resolve 2 dialyzer warnings for redundant nil guards on list values
1 parent cadd5e8 commit 6d5f5b7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/nous/agents/knowledge_base_agent.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ defmodule Nous.Agents.KnowledgeBaseAgent do
8585
ctx = Context.add_message(ctx, response)
8686

8787
# Track KB operations for reporting
88-
tool_calls = response.tool_calls || []
88+
tool_calls = response.tool_calls
8989

9090
kb_calls =
9191
Enum.filter(tool_calls, fn call ->

lib/nous/knowledge_base/workflows.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ defmodule Nous.KnowledgeBase.Workflows do
261261

262262
defp build_health_report(state) do
263263
audit_output = state.data.audit_entries
264-
issues = parse_json_output(audit_output) || []
264+
issues = parse_json_output(audit_output)
265265
stats = state.data.stats
266266

267267
report =

0 commit comments

Comments
 (0)