Skip to content

Commit

Permalink
refactor: improve separation of concerns
Browse files Browse the repository at this point in the history
Signed-off-by: Guillaume Hivert <[email protected]>
  • Loading branch information
ghivert committed May 4, 2024
1 parent 771d5c9 commit 0f1abad
Show file tree
Hide file tree
Showing 19 changed files with 467 additions and 596 deletions.
2 changes: 1 addition & 1 deletion apps/backend/src/api/hex.gleam
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import backend/index/error
import backend/error
import gleam/dynamic
import gleam/hexpm
import gleam/http/request
Expand Down
4 changes: 2 additions & 2 deletions apps/backend/src/api/hex_repo.gleam
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import backend/index/error
import backend/error
import gleam/bit_array
import gleam/http
import gleam/http/request
Expand Down Expand Up @@ -63,7 +63,7 @@ fn read_package_interface(blob: option.Option(String)) {
fn read_gleam_toml(blob: String) {
blob
|> tom.parse()
|> result.map_error(error.TomlError)
|> result.map_error(error.ParseTomlError)
}

fn extract_package_infos(name: String, version: String) {
Expand Down
Loading

0 comments on commit 0f1abad

Please sign in to comment.