Skip to content

Commit 67be50b

Browse files
committed
Fix credo
1 parent c116494 commit 67be50b

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

lib/jola_dev/llms_txt.ex

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ defmodule JolaDev.LlmsTxt do
88
@host "https://jola.dev"
99

1010
def generate do
11-
"""
11+
String.trim_trailing("""
1212
# jola.dev
1313
1414
> Personal website of Johanna Larsson, a software engineer, engineering leader, writer, and speaker with over 14 years of experience building products and leading teams.
@@ -23,12 +23,11 @@ defmodule JolaDev.LlmsTxt do
2323
## Blog Posts
2424
2525
#{post_links()}\
26-
"""
27-
|> String.trim_trailing()
26+
""")
2827
end
2928

3029
def generate_full do
31-
"""
30+
String.trim_trailing("""
3231
# jola.dev
3332
3433
> Personal website of Johanna Larsson, a software engineer, engineering leader, writer, and speaker with over 14 years of experience building products and leading teams.
@@ -43,20 +42,17 @@ defmodule JolaDev.LlmsTxt do
4342
## Blog Posts
4443
4544
#{post_details()}\
46-
"""
47-
|> String.trim_trailing()
45+
""")
4846
end
4947

5048
defp post_links do
51-
Blog.all_posts()
52-
|> Enum.map_join("\n", fn post ->
49+
Enum.map_join(Blog.all_posts(), "\n", fn post ->
5350
"- [#{post.title}](#{@host}/posts/#{post.id})"
5451
end)
5552
end
5653

5754
defp post_details do
58-
Blog.all_posts()
59-
|> Enum.map_join("\n", fn post ->
55+
Enum.map_join(Blog.all_posts(), "\n", fn post ->
6056
"- [#{post.title}](#{@host}/posts/#{post.id}): #{post.description}"
6157
end)
6258
end

0 commit comments

Comments
 (0)