Fix typos

Closes #197
This commit is contained in:
Noa Amran 2019-06-10 21:31:22 -05:00 committed by Jannis Mattheis
parent 11e0a4b0df
commit 44f4ff31cb
6 changed files with 6 additions and 6 deletions

View File

@ -2068,7 +2068,7 @@
"x-go-package": "github.com/gotify/server/model" "x-go-package": "github.com/gotify/server/model"
}, },
"Paging": { "Paging": {
"description": "The Paging holds holds information about the limit and making requests to the next page.", "description": "The Paging holds information about the limit and making requests to the next page.",
"type": "object", "type": "object",
"title": "Paging Model", "title": "Paging Model",
"required": [ "required": [

View File

@ -2,7 +2,7 @@ package model
// Paging Model // Paging Model
// //
// The Paging holds holds information about the limit and making requests to the next page. // The Paging holds information about the limit and making requests to the next page.
// //
// swagger:model Paging // swagger:model Paging
type Paging struct { type Paging struct {

View File

@ -18,7 +18,7 @@ func (c PluginV1) APIVersion() string {
return "v1" return "v1"
} }
// PluginInfo implements conpat/Plugin // PluginInfo implements compat/Plugin
func (c PluginV1) PluginInfo() Info { func (c PluginV1) PluginInfo() Info {
return Info{ return Info{
Version: c.Info.Version, Version: c.Info.Version,

View File

@ -43,7 +43,7 @@ type Notifier interface {
Notify(userID uint, message *model.MessageExternal) Notify(userID uint, message *model.MessageExternal)
} }
// Manager is an encapusulating layer for plugins and manages all plugins and its instances. // Manager is an encapsulating layer for plugins and manages all plugins and its instances.
type Manager struct { type Manager struct {
mutex *sync.RWMutex mutex *sync.RWMutex
instances map[uint]compat.PluginInstance instances map[uint]compat.PluginInstance

View File

@ -34,7 +34,7 @@ func (c unreadableReader) Read([]byte) (int, error) {
return 0, errors.New("this reader cannot be read") return 0, errors.New("this reader cannot be read")
} }
// UnreadableReader returns an unreadadbe reader, used to mock IO issues. // UnreadableReader returns an unreadable reader, used to mock IO issues.
func UnreadableReader() io.Reader { func UnreadableReader() io.Reader {
return unreadableReader{} return unreadableReader{}
} }

View File

@ -7,7 +7,7 @@ import (
"runtime" "runtime"
) )
// GetProjectDir returns the currect apsolute path of this project // GetProjectDir returns the correct absolute path of this project
func GetProjectDir() string { func GetProjectDir() string {
_, f, _, _ := runtime.Caller(0) _, f, _, _ := runtime.Caller(0)
projectDir, _ := filepath.Abs(path.Join(filepath.Dir(f), "../")) projectDir, _ := filepath.Abs(path.Join(filepath.Dir(f), "../"))