Skip to content

Commit

Permalink
chore: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
samnap11 committed May 19, 2022
1 parent 6130e93 commit f995567
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion service/storefront/storelayout.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ func (s *Service) UploadStoreLayout(fh *multipart.FileHeader) error {

func (s *Service) GetStoreLayout() (models.StorefrontLayout, error) {
var result models.StorefrontLayout
var content []byte
dir, err := os.Getwd()
if err != nil {
return result, err
}

fileLoc := filepath.Join(dir, "layout", "storefrontlayout.json")

content, err := os.ReadFile(fileLoc)
content, err = os.ReadFile(fileLoc)
if err := json.Unmarshal(content, &result); err != nil {
return result, err
}
Expand Down

0 comments on commit f995567

Please sign in to comment.