Skip to content

Commit

Permalink
Merge pull request #237 from opoppe/fix_typo
Browse files Browse the repository at this point in the history
Fix typo in an error and a migration message
  • Loading branch information
Xemdo authored May 23, 2023
2 parents 353790f + 8963558 commit 2ce96de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/database/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ CREATE TABLE chat_settings( broadcaster_id text not null primary key, slow_mode
INSERT INTO chat_settings (broadcaster_id) SELECT id FROM users;
ALTER TABLE users ADD COLUMN chat_color text not null default '#9146FF';
CREATE TABLE vips ( broadcaster_id text not null, user_id text not null, created_at text not null default '', primary key (broadcaster_id, user_id), foreign key (broadcaster_id) references users(id), foreign key (user_id) references users(id) );`,
Message: `Updating database to include API changes since last verison. See Twitch CLI changelog for more info.`,
Message: `Updating database to include API changes since last version. See Twitch CLI changelog for more info.`,
},
}

Expand Down
4 changes: 2 additions & 2 deletions internal/events/types/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,11 @@ func GetByTriggerAndTransportAndVersion(trigger string, transport string, versio
return latestEventSeen, nil
}

// Error for events with non-existent verison used
// Error for events with non-existent version used
if len(validEventBadVersions) != 0 {
errStr := fmt.Sprintf("Invalid version given. Valid version(s): %v", strings.Join(validEventBadVersions, ", "))
if version == "" {
errStr += "\nUse --verison to specify"
errStr += "\nUse --version to specify"
}
return nil, errors.New(errStr)
}
Expand Down

0 comments on commit 2ce96de

Please sign in to comment.