Skip to content

Commit

Permalink
lint and version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
karnthis committed Sep 28, 2023
1 parent a98b2b9 commit 1d4212c
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ seed-phrase of the API.
```shell
git clone https://github.com/JackalLabs/jackalapi.git
cd jackalapi
git checkout v0.1.0
git checkout v0.2.0
go make install
```

Expand Down
7 changes: 4 additions & 3 deletions japicore/fidRouteHandling.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,12 @@ package japicore
import (
"bytes"
"fmt"
"net/http"
"strings"

"github.com/JackalLabs/jackalapi/jutils"
"github.com/JackalLabs/jackalgo/handlers/file_io_handler"
"github.com/uptrace/bunrouter"
"net/http"
"strings"
)

func IpfsHandler(fileIo *file_io_handler.FileIoHandler, queue *FileIoQueue) bunrouter.HandlerFunc {
Expand Down Expand Up @@ -112,7 +113,7 @@ func DeleteByFidHandler(fileIo *file_io_handler.FileIoHandler, queue *FileIoQueu
// return err
//}

//message := createJsonResponse("Deletion complete")
// message := createJsonResponse("Deletion complete")
message := createJsonResponse("Deletion Not Implemented")
condensedWriteJSON(w, message)
return nil
Expand Down
3 changes: 2 additions & 1 deletion japicore/miscRouteHandling.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ package japicore

import (
"fmt"
"net/http"

"github.com/JackalLabs/jackalapi/jutils"
"github.com/uptrace/bunrouter"
"net/http"
)

var (
Expand Down
3 changes: 2 additions & 1 deletion japicore/utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import (
"bytes"
"encoding/json"
"fmt"
"github.com/uptrace/bunrouter"
"net/http"
"sync"

"github.com/uptrace/bunrouter"

"github.com/JackalLabs/jackalapi/jutils"
"github.com/JackalLabs/jackalgo/handlers/file_io_handler"
"github.com/JackalLabs/jackalgo/handlers/file_upload_handler"
Expand Down
28 changes: 13 additions & 15 deletions jutils/jutils_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,19 @@ type testCase struct {
shouldPanic bool
}

var (
tt = []testCase{
{
name: "env var exists",
varId: "MOCK_ENV_VAR",
shouldPanic: false,
},
{
name: "env var doesn't exist",
varId: "I_DONT_EXIST",
fallBack: "fallback_var",
shouldPanic: true,
},
}
)
var tt = []testCase{
{
name: "env var exists",
varId: "MOCK_ENV_VAR",
shouldPanic: false,
},
{
name: "env var doesn't exist",
varId: "I_DONT_EXIST",
fallBack: "fallback_var",
shouldPanic: true,
},
}

// Env funcs
func TestLoadEnvVarOrFallback(t *testing.T) {
Expand Down

0 comments on commit 1d4212c

Please sign in to comment.