From 8331af287059689d24d10a5a33fbd1690a6fbb2c Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Thu, 6 Jul 2017 19:46:23 +0200 Subject: [PATCH] cleanup --- src/NadekoBot/Services/Impl/Ytdl.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NadekoBot/Services/Impl/Ytdl.cs b/src/NadekoBot/Services/Impl/Ytdl.cs index fd690d20..5fce2bba 100644 --- a/src/NadekoBot/Services/Impl/Ytdl.cs +++ b/src/NadekoBot/Services/Impl/Ytdl.cs @@ -32,7 +32,8 @@ namespace NadekoBot.Services.Impl process.Start(); var str = await process.StandardOutput.ReadToEndAsync(); var err = await process.StandardError.ReadToEndAsync(); - _log.Warn(err); + if(!string.IsNullOrEmpty(err)) + _log.Warn(err); return str; } }