Minor fixes

This commit is contained in:
magnolia-fan
2011-12-07 09:44:46 +04:00
parent 2a5a6c12a0
commit c050afefed
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -13,7 +13,7 @@ class ArtistController < ApplicationController
unless @artist
results = MusicBrainz::Artist.search(artist_name)
if results.empty?
return render json: { status: 'not_found' }, status: 404
return render json: { status: 'not_found' }
end
best_match = results[0][:sort_name]
if best_match != artist_name and similar_names(artist_name, best_match)