diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-12 13:50:21 +0300 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2016-04-12 15:12:30 +0300 |
commit | f81352f531b22d02b1b80cfbd6daed809ea8cf5d (patch) | |
tree | f32f4ea1ff6388c330a08932730ec596e944c4d0 /lib/api/tags.rb | |
parent | 20d4ca4cc3599b4335b73fd7c3bb0354efe397b4 (diff) |
Fix minor styling issues from code review
Diffstat (limited to 'lib/api/tags.rb')
-rw-r--r-- | lib/api/tags.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/api/tags.rb b/lib/api/tags.rb index 731a68082ba..d1a10479e44 100644 --- a/lib/api/tags.rb +++ b/lib/api/tags.rb @@ -19,15 +19,15 @@ module API # Get a single repository tag # # Parameters: - # id (required) - The ID of a project + # id (required) - The ID of a project # tag_name (required) - The name of the tag # Example Request: # GET /projects/:id/repository/tags/:tag_name - get ":id/repository/tags/:tag_name", requirements: { tag_name: /.*/ } do + get ":id/repository/tags/:tag_name", requirements: { tag_name: /.+/ } do tag = user_project.repository.find_tag(params[:tag_name]) not_found!('Tag') unless tag - present tag, with: Entities::RepoTag, project: user_project + present tag, with: Entities::RepoTag, project: user_project end # Create tag |