fix dscanner warning on non doc decl

This commit is contained in:
Basile Burg 2019-02-28 12:01:58 +01:00
parent fc04099b1e
commit 7850f30ec9
1 changed files with 2 additions and 2 deletions

View File

@ -107,7 +107,7 @@ public:
} }
} }
bool findReturnInLiteral(const(string) value) private bool findReturnInLiteral(const(string) value)
{ {
import std.algorithm.searching : find; import std.algorithm.searching : find;
import std.range : empty; import std.range : empty;
@ -115,7 +115,7 @@ public:
return value == "return" || !value.find("return ").empty; return value == "return" || !value.find("return ").empty;
} }
bool stringliteralHasReturn(const(NonVoidInitializer) nvi) private bool stringliteralHasReturn(const(NonVoidInitializer) nvi)
{ {
bool result; bool result;
if (!nvi.assignExpression || (cast(UnaryExpression) nvi.assignExpression) is null) if (!nvi.assignExpression || (cast(UnaryExpression) nvi.assignExpression) is null)