From aae168481103a2141d91df6658d381a182fad9d9 Mon Sep 17 00:00:00 2001 From: CodeLingo Bot Date: Thu, 14 Feb 2019 20:43:47 +0000 Subject: [PATCH] Fix function comments based on best practices from Effective Go Signed-off-by: CodeLingo Bot --- config/config.go | 2 +- push.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.go b/config/config.go index 5be04492..45507888 100644 --- a/config/config.go +++ b/config/config.go @@ -50,7 +50,7 @@ func (c *Context) Write() (err error) { return ioutil.WriteFile(credentialsPath(c.AbsPath), data, 0600) } -// Discovers the gd directory, if no gd directory or credentials +// Discover: Discovers the gd directory, if no gd directory or credentials // could be found for the path, returns ErrNoContext. func Discover(currentAbsPath string) (context *Context, err error) { p := currentAbsPath diff --git a/push.go b/push.go index 0dd3937e..09b2d2f9 100644 --- a/push.go +++ b/push.go @@ -24,7 +24,7 @@ import ( "github.com/rakyll/drive/config" ) -// Pushes to remote if local path exists and in a god context. If path is a +// Push: Pushes to remote if local path exists and in a god context. If path is a // directory, it recursively pushes to the remote if there are local changes. // It doesn't check if there are local changes if isForce is set. func (g *Commands) Push() (err error) {