Skip to content

Commit

Permalink
Change literal type
Browse files Browse the repository at this point in the history
  • Loading branch information
InversionSpaces committed Jun 9, 2023
1 parent 1093537 commit 444b24f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion model/src/main/scala/aqua/model/OpModel.scala
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ object CallServiceModel {
result: VarModel
): CallServiceModel =
CallServiceModel(
LiteralModel.liftScalarString(serviceId),
LiteralModel.quote(serviceId),
funcName,
CallModel(
args,
Expand Down
2 changes: 0 additions & 2 deletions model/src/main/scala/aqua/model/ValueModel.scala
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ object LiteralModel {
def fromRaw(raw: LiteralRaw): LiteralModel = LiteralModel(raw.value, raw.baseType)

def quote(str: String): LiteralModel = LiteralModel(s"\"$str\"", LiteralType.string)

def liftScalarString(str: String): LiteralModel = LiteralModel(s"\"$str\"", ScalarType.string)
}

sealed trait PropertyModel {
Expand Down

0 comments on commit 444b24f

Please sign in to comment.