Skip to content

Commit

Permalink
refactor: adjust comment and remove 1.12 support (#338)
Browse files Browse the repository at this point in the history
  • Loading branch information
wxiaoguang authored Nov 26, 2024
1 parent 77b369a commit 0cd5289
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 42 deletions.
5 changes: 2 additions & 3 deletions protocol/base64.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,8 @@ func (e *URLEncodedBase64) UnmarshalJSON(data []byte) error {
return nil
}

// TODO: Investigate this line. It is commented as trimming the leading spaces but appears to trim the leading and trailing double quotes instead.
// Trim the leading spaces.
data = bytes.Trim(data, "\"")
// Trim the leading and trailing quotes from raw JSON data (the whole value part)
data = bytes.Trim(data, `"`)

// Trim the trailing equal characters.
data = bytes.TrimRight(data, "=")
Expand Down
2 changes: 0 additions & 2 deletions protocol/webauthncose/ed25519.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
//go:build go1.13

package webauthncose

import (
Expand Down
37 changes: 0 additions & 37 deletions protocol/webauthncose/ed25519_go112.go

This file was deleted.

0 comments on commit 0cd5289

Please sign in to comment.