Skip to content

Commit

Permalink
chore: fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ernado committed Sep 25, 2022
1 parent 11ce8bb commit f2ce9e7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions session/session.go
Expand Up @@ -54,6 +54,9 @@ type Config struct {
WebfileDCID int
}

// ConfigFromTG converts tg.Config to Config.
//
// Note that Config is the subset of tg.Config, so data loss is possible.
func ConfigFromTG(c tg.Config) Config {
return Config{
BlockedMode: c.BlockedMode,
Expand All @@ -70,6 +73,9 @@ func ConfigFromTG(c tg.Config) Config {
}
}

// TG returns tg.Config from Config.
//
// Note that config is the subset of tg.Config, so some fields will be unset.
func (c Config) TG() tg.Config {
return tg.Config{
BlockedMode: c.BlockedMode,
Expand Down

0 comments on commit f2ce9e7

Please sign in to comment.