Skip to content

Commit

Permalink
fix language detection
Browse files Browse the repository at this point in the history
  • Loading branch information
merlinfuchs committed Sep 8, 2023
1 parent 271f5e1 commit 2cfcc72
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 127 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
data
.DS_Store
vaultbin.badger
vaultbin
vaultbin.toml
2 changes: 1 addition & 1 deletion internal/db/store_pastes.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func (db *DB) CreatePaste(content, language string) (*store.Paste, error) {
func (db *DB) Paste(id string) (*store.Paste, error) {
encryptionKey, err := common.DecodeEncryptionKey(id)
if err != nil {
return nil, fmt.Errorf("failed decoding encryption key: %w", err)
return nil, nil
}

var res *store.Paste
Expand Down
Loading

0 comments on commit 2cfcc72

Please sign in to comment.