Fixed logic and tests

This commit is contained in:
Łukasz Kuczborski
2021-04-09 23:37:54 +02:00
parent 371a4737d9
commit 521a599a60
2 changed files with 2 additions and 4 deletions

View File

@@ -51,8 +51,6 @@ public struct Variable: Equatable, Resolvable {
if variable.count > 1 && ((variable.hasPrefix("'") && variable.hasSuffix("'")) || (variable.hasPrefix("\"") && variable.hasSuffix("\""))) {
// String literal
return String(variable[variable.index(after: variable.startIndex) ..< variable.index(before: variable.endIndex)])
} else {
return ""
}
// Number literal