Skip to content

Commit

Permalink
[feat]: versionStyle fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielCech committed Aug 24, 2020
1 parent ff04e4e commit e5ca59a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/VersionIcon/main.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ do {
guard let convertedHorizontalTitlePosition = Double(horizontalTitlePositionRatio.value) else { throw ScriptError.argumentError(message: "Invalid horizontalTitlePosition argument") }
guard let convertedVerticalTitlePosition = Double(verticalTitlePositionRatio.value) else { throw ScriptError.argumentError(message: "Invalid verticalTitlePosition argument") }
guard titleAlignment.value == "left" || titleAlignment.value == "center" || titleAlignment.value == "right" else { throw ScriptError.argumentError(message: "Invalid titleAlignment argument") }
guard versionStyle.value == "dash" || titleAlignment.value == "parenthesis" || titleAlignment.value == "versionOnly" || titleAlignment.value == "buildOnly" else { throw ScriptError.argumentError(message: "Invalid versionStyle argument") }
guard versionStyle.value == "dash" || versionStyle.value == "parenthesis" || versionStyle.value == "versionOnly" || versionStyle.value == "buildOnly" else { throw ScriptError.argumentError(message: "Invalid versionStyle argument") }
guard let convertedTitleFillColor = NSColor(hexString: titleFillColor.value) else { throw ScriptError.argumentError(message: "Invalid fillcolor argument") }
guard let convertedTitleStrokeColor = NSColor(hexString: titleStrokeColor.value) else { throw ScriptError.argumentError(message: "Invalid strokecolor argument") }
guard let convertedTitleStrokeWidth = Double(titleStrokeWidth.value) else { throw ScriptError.argumentError(message: "Invalid strokewidth argument") }
Expand Down

0 comments on commit e5ca59a

Please sign in to comment.