Skip to content

Commit

Permalink
Linter happyness
Browse files Browse the repository at this point in the history
  • Loading branch information
dominicletz committed Dec 12, 2023
1 parent 998767e commit e424c7c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 39 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
elixir-version: 1.11.4

- uses: actions/checkout@v1
- run: mix deps.get

- uses: actions/cache@v2
id: mix-cache
with:
Expand All @@ -26,7 +28,6 @@ jobs:
mkdir -p priv/plts
mix local.rebar --force
mix local.hex --force
mix deps.get
mix deps.compile
mix dialyzer --plt
Expand Down
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,14 @@ desktop-*.tar
# Temporary files, for example, from tests.
/tmp/

# Ignore plt files
/priv/plts/

# If NPM crashes, it generates a log, let's ignore it too.
npm-debug.log

# The directory NPM downloads your dependencies sources to.
/assets/node_modules/

# This is a library
/mix.lock
2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
erlang 24.3.3
elixir 1.11.4
elixir 1.13.4
2 changes: 1 addition & 1 deletion lib/desktop/os.ex
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ defmodule Desktop.OS do
This is a Path.expand variant that normalizes the drive letter
on windows
"""
@spec path_expand(string) :: binary
@spec path_expand(IO.chardata()) :: binary
def path_expand(path) do
if windows?() do
path = if is_list(path), do: List.to_string(path), else: path
Expand Down
4 changes: 1 addition & 3 deletions lib/desktop/window.ex
Original file line number Diff line number Diff line change
Expand Up @@ -500,9 +500,7 @@ defmodule Desktop.Window do
case Enum.find(noties, fn {_, {wx_ref, _callback}} -> wx_ref == obj end) do
nil ->
Logger.error(
"Received unhandled notification event #{inspect(obj)}: #{inspect(action)} (#{
inspect(noties)
})"
"Received unhandled notification event #{inspect(obj)}: #{inspect(action)} (#{inspect(noties)})"
)

{_, {_ref, nil}} ->
Expand Down
33 changes: 0 additions & 33 deletions mix.lock

This file was deleted.

0 comments on commit e424c7c

Please sign in to comment.