Skip to content

Commit

Permalink
fixed linting errors
Browse files Browse the repository at this point in the history
Signed-off-by: Neeraj Nagure <[email protected]>
  • Loading branch information
NeerajNagure committed Apr 17, 2024
1 parent 2a957b1 commit afc6c91
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions cmd/store/import.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,11 @@ func importStore(
maxParallelRequests int,
) (*CreateStoreAndModelResponse, error) {
var err error
var response *CreateStoreAndModelResponse
if storeID == "" {
var response *CreateStoreAndModelResponse //nolint:wsl
if storeID == "" { //nolint:wsl
createStoreAndModelResponse, err := CreateStoreWithModel(clientConfig, storeData.Name, storeData.Model, format)
response = createStoreAndModelResponse
if err != nil {
if err != nil { //nolint:wsl
return nil, err
}
clientConfig.StoreID = createStoreAndModelResponse.Store.Id //nolint:wsl
Expand Down Expand Up @@ -123,7 +123,8 @@ var importCmd = &cobra.Command{
return fmt.Errorf("failed to initialize FGA Client due to %w", err)
}

createStoreAndModelResponse, err = importStore(clientConfig, fgaClient, storeData, format, storeID, maxTuplesPerWrite, maxParallelRequests)
createStoreAndModelResponse, err = importStore(clientConfig, fgaClient, storeData, format,
storeID, maxTuplesPerWrite, maxParallelRequests)
if err != nil {
return err
}
Expand Down

0 comments on commit afc6c91

Please sign in to comment.