Skip to content

Commit a942c48

Browse files
committed
Reduce linting errors found by credo
This commit includes the following changes: * More pipe chains start with a raw value. * Replace some `cond` with just one condition. * Add more typespecs * Remove commented code * Remove compiler warnings (unused alias) * Change lowerCamelCase variable name to use snake_case * Omit `else` when returning `nil` * Put _ in long numbers for readability
1 parent f324363 commit a942c48

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

lib/scenic/view_port/input.ex

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -578,14 +578,15 @@ defmodule Scenic.ViewPort.Input do
578578
point = Matrix.project_vector(context.inverse_tx, point)
579579

580580
with {:ok, graph} <- ViewPort.Tables.get_graph(context.graph_key) do
581-
point = do_find_by_captured_point(
582-
point,
583-
0,
584-
graph,
585-
Matrix.identity(),
586-
Matrix.identity(),
587-
max_depth
588-
)
581+
point =
582+
do_find_by_captured_point(
583+
point,
584+
0,
585+
graph,
586+
Matrix.identity(),
587+
Matrix.identity(),
588+
max_depth
589+
)
589590

590591
if point, do: point, else: {nil, nil, point}
591592
else

0 commit comments

Comments
 (0)