Minor fixes
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user