Commit af99bba4 authored by Seb's avatar Seb
Browse files

code review changes

parent c6b9c2f9
......@@ -6,9 +6,9 @@ from django.core.checks import Warning, register
from wagtailvideos.utils import ffmpeg_installed
def ffmpeg_check(app_configs, path=None, **kwargs):
def ffmpeg_check(app_configs, **kwargs):
messages = []
if not ffmpeg_installed(path=path):
if not ffmpeg_installed():
messages.append(
Warning(
'ffmpeg could not be found on your system. Transcoding will be disabled',
......
......@@ -7,6 +7,4 @@ except ImportError:
def ffmpeg_installed(path=None):
if which('ffmpeg', path=path) is None:
return False
return True
return which('ffmpeg', path=path) is not None
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment