Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Access to an app #82

Merged
merged 9 commits into from
Nov 16, 2016
Merged

Access to an app #82

merged 9 commits into from
Nov 16, 2016

Conversation

nono
Copy link
Member

@nono nono commented Nov 8, 2016

It's work in progress. There are some known bugs and I should add some tests. But you can look at it

@nono nono force-pushed the access branch 2 times, most recently from 440a50b to a031734 Compare November 9, 2016 12:21
@nono nono changed the title [WIP] Access to an app Access to an app Nov 15, 2016

instInterface, ok := c.Get("instance")
if !ok {
jsonapi.AbortWithError(c, jsonapi.InternalServerError(errors.New("no instance")))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing return

jsonapi.AbortWithError(c, jsonapi.NotFound(err))
return
}
jsonapi.AbortWithError(c, jsonapi.InternalServerError(err))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing return

Copy link
Contributor

@aenario aenario left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Travis is not happy for formatting reason. Otherwise, all good 👍

return err
}
err = createFile(pubdir, "index.html", "this is a file in public/")
if err != nil {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

gometalinter & travis dislike this condition (if err != nil { return err }; return nil)

@jinroh jinroh merged commit 859801e into cozy:master Nov 16, 2016
@nono nono deleted the access branch November 23, 2016 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants