Skip to content

Commit

Permalink
change to has prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
nplasterer committed Oct 11, 2023
1 parent f925b8a commit 59e96a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Sources/XMTP/Codecs/RemoteAttachmentCodec.swift
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public struct RemoteAttachmentCodec: ContentCodec {
throw RemoteAttachmentError.invalidScheme("no scheme parameter")
}

if (!schemeString.starts(with: "https")) {
if (!schemeString.hasPrefix(RemoteAttachment.Scheme.https.rawValue)) {
throw RemoteAttachmentError.invalidScheme("invalid scheme value. must start with https")
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/xmtp/xmtp-rust-swift",
"state" : {
"revision" : "4a76e5401fa780c40610e2f0d248f695261d08dd",
"version" : "0.3.1-beta0"
"revision" : "d1aaac47fc7c57645a6fe9e06972b957b3efa33c",
"version" : "0.3.5-beta0"
}
}
],
Expand Down

0 comments on commit 59e96a9

Please sign in to comment.