forked from cadence-workflow/cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Staticcheck cleanup (cadence-workflow#4751)
* unnecessary use of fmt.Sprintf (S1039) * could eliminate this type assertion (S1034) * package is being imported more than once (ST1019) * redundant return statement (S1023) * should use make(...) instead (S1019) * should omit nil check; len() for nil slices is defined as zero (S1009) * should merge variable declaration with assignment on next line (S1021) * should use fmt.Fprintf instead of fmt.Fprint(fmt.Sprintf(...)) (S1038) * hould replace this if statement with an unconditional strings.TrimPrefix (S1017) * should use bytes.Equal(data, data2) instead (S1004) * should use 'return X' instead of 'if X { return true }; return false' (S1008) * should omit comparison to bool constant, can be simplified to trees[br.TreeID] (S1002) * should replace loop with ancestors = append(ancestors, branchInfo.Ancestors...) (S1011) * should use a simple channel send/receive instead of select with a single case (S1000) * value of type int cannot be used with binary.Write (SA1003) * do not pass a nil Context, even if a function permits it; pass context.TODO if you are unsure about which Context to use (SA1012) * Using a deprecated function, variable, constant or field (SA1019) * should not use built-in type string as key for value; define your own type to avoid collisions (SA1029) * removed unused code (U1000) * error strings should not be capitalized (ST1005) * don't use unit-specific suffix Seconds (ST1011) * should use time.Since instead of time.Now().Sub (S1012) * should use time.Until instead of t.Sub(time.Now()) (S1024) * this value of ... is never used (SA4006) * Fixing integration test * Fix TestDNSSRVMode * Fix TestExecutionFixerActivity_Success * Use int64 for binary.Write * Update service/frontend/clusterRedirectionHandler_test.go Co-authored-by: Steven L <[email protected]> Co-authored-by: Steven L <[email protected]>
- Loading branch information
1 parent
0596698
commit 7084679
Showing
140 changed files
with
837 additions
and
3,276 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.